Add an average packet size, as suggested by Daniel Jackson.
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 7 Mar 2003 20:27:02 +0000 (20:27 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 7 Mar 2003 20:27:02 +0000 (20:27 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7313 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/summary_dlg.c

index 39f62a86c15ef337394371d6ae253fc9e0a6583c..24da6b450a46e26652fcd13eb02ee0d87372444b 100644 (file)
@@ -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);