aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/summary_dlg.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-08 09:12:11 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-07-08 09:12:11 +0000
commit6216e29fbbcacfe64af08d26782538c23d72526e (patch)
tree253cce71eea9dc0557a1a49096301e12c8b274bb /gtk/summary_dlg.c
parent01730a2c9cbd15b5ac7e387ca2ff7d3e5d44a0bf (diff)
Make the counters in the summary 64-bit, so they don't overflow on
Really Big Captures. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14875 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/summary_dlg.c')
-rw-r--r--gtk/summary_dlg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/summary_dlg.c b/gtk/summary_dlg.c
index 03a8309c67..2fd1317f6d 100644
--- a/gtk/summary_dlg.c
+++ b/gtk/summary_dlg.c
@@ -215,7 +215,7 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_)
/* Dropped count */
if (summary.drops_known) {
- g_snprintf(string_buff, SUM_STR_MAX, "%u", summary.drops);
+ g_snprintf(string_buff, SUM_STR_MAX, "%" PRIu64, summary.drops);
} else {
g_snprintf(string_buff, SUM_STR_MAX, "unknown");
}
@@ -319,9 +319,9 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_)
add_string_to_list(list, "Avg. packet size", string_buff, string_buff2);
/* Byte count */
- g_snprintf(string_buff, SUM_STR_MAX, "%d", summary.bytes);
+ g_snprintf(string_buff, SUM_STR_MAX, "%" PRIu64, summary.bytes);
if (summary.dfilter && summary.filtered_count > 0){
- g_snprintf(string_buff2, SUM_STR_MAX, "%d", summary.filtered_bytes);
+ g_snprintf(string_buff2, SUM_STR_MAX, "%" PRIu64, summary.filtered_bytes);
} else {
strcpy(string_buff2, "");
}