aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/summary_dlg.c
diff options
context:
space:
mode:
authorLaurent Deniel <laurent.deniel@free.fr>2000-08-19 21:36:51 +0000
committerLaurent Deniel <laurent.deniel@free.fr>2000-08-19 21:36:51 +0000
commit9110dda9dc4dd342e267bdcbbdcaed34023eb29e (patch)
treeeca25a02bd63dbf597bad54a171e3fbaa31b4006 /gtk/summary_dlg.c
parent8d95269d34b49155f81f3e1b30252799845c453b (diff)
downloadwireshark-9110dda9dc4dd342e267bdcbbdcaed34023eb29e.tar.gz
wireshark-9110dda9dc4dd342e267bdcbbdcaed34023eb29e.tar.bz2
wireshark-9110dda9dc4dd342e267bdcbbdcaed34023eb29e.zip
Add Mbit/sec to the summary window.
svn path=/trunk/; revision=2300
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 14f3fb6559..5e8f753270 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.6 2000/08/11 13:33:08 deniel Exp $
+ * $Id: summary_dlg.c,v 1.7 2000/08/19 21:36:51 deniel Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -149,6 +149,10 @@ summary_open_cb(GtkWidget *w, gpointer d)
if (seconds > 0){
snprintf(string_buff, SUM_STR_MAX, "Avg. bytes/sec: %.3f", summary.bytes/seconds);
add_string_to_box(string_buff, data_box);
+
+ /* MBit per second */
+ snprintf(string_buff, SUM_STR_MAX, "Avg. Mbit/sec: %.3f", summary.bytes*8/(seconds*1000*1000));
+ add_string_to_box(string_buff, data_box);
}
/* Capture frame */