aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/summary_dlg.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2003-03-07 20:27:02 +0000
committerGerald Combs <gerald@wireshark.org>2003-03-07 20:27:02 +0000
commit40606a6ed250321f7ea167e3ffe5f835675323d2 (patch)
tree8968874d9bdde5d4b921cee717a541a932f8ceb5 /gtk/summary_dlg.c
parentfb65eca073bc7653fae59b77223684f364e21743 (diff)
Add an average packet size, as suggested by Daniel Jackson.
svn path=/trunk/; revision=7313
Diffstat (limited to 'gtk/summary_dlg.c')
-rw-r--r--gtk/summary_dlg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/summary_dlg.c b/gtk/summary_dlg.c
index 39f62a86c1..24da6b450a 100644
--- a/gtk/summary_dlg.c
+++ b/gtk/summary_dlg.c
@@ -1,7 +1,7 @@
/* summary_dlg.c
* Routines for capture file summary window
*
- * $Id: summary_dlg.c,v 1.17 2002/11/11 15:39:06 oabad Exp $
+ * $Id: summary_dlg.c,v 1.18 2003/03/07 20:27:02 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -144,6 +144,10 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_)
add_string_to_box(string_buff, data_box);
}
+ /* Packet size */
+ snprintf(string_buff, SUM_STR_MAX, "Avg. packet size: %.3f bytes", (float) summary.bytes/summary.packet_count);
+ add_string_to_box(string_buff, data_box);
+
/* Dropped count */
if (summary.drops_known) {
snprintf(string_buff, SUM_STR_MAX, "Dropped packets: %u", summary.drops);