diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-10-10 20:19:18 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-10-10 20:19:18 +0000 |
commit | f003add90f1dbfffb036f989d9f5964d2a3939a9 (patch) | |
tree | 8efe84b31a40ddfacc95a4e1c43c98745c4fdebb /ui/gtk | |
parent | 5ba1ad12cc92c5d8e87d8ff4edb5767d4cf63d64 (diff) |
Fix a copy+paste error and a missing include. Adjust the format_size
digit threshold.
svn path=/trunk/; revision=45456
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/capture_if_details_dlg_win32.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/gtk/capture_if_details_dlg_win32.c b/ui/gtk/capture_if_details_dlg_win32.c index c6c2673622..58a45f7836 100644 --- a/ui/gtk/capture_if_details_dlg_win32.c +++ b/ui/gtk/capture_if_details_dlg_win32.c @@ -35,6 +35,8 @@ #include <epan/value_string.h> #include <epan/addr_resolv.h> +#include <wsutil/str_util.h> + #include "../file.h" #include "../capture.h" @@ -1835,7 +1837,7 @@ capture_if_details_general(GtkWidget *table, GtkWidget *main_vb, guint *row, LPA if (wpcap_packet_request_uint(adapter, OID_GEN_LINK_SPEED, &uint_value)) { entries++; uint_value *= 100; - size_str = format_size(stat_buf.st_size, format_size_unit_bits_s|format_size_prefix_si); + size_str = format_size(uint_value, format_size_unit_bits_s|format_size_prefix_si); g_strlcpy(string_buff, size_str, DETAILS_STR_MAX); g_free(size_str); } else { |