aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-12-18 06:44:50 +0000
committerGuy Harris <guy@alum.mit.edu>2002-12-18 06:44:50 +0000
commit462a1b80b4c035bb51c6f0de4ffc66bcede213bd (patch)
tree7fe5335f83b980f980f70e271b32f7babc201597
parent020effa6d0932ad010ca3358bb7e2954cf381879 (diff)
Correctly compute the minutes portion of the elapsed time.
svn path=/trunk/; revision=6797
-rw-r--r--capture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capture.c b/capture.c
index e7b0dde4c4..40e7b0f1fb 100644
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
/* capture.c
* Routines for packet capture windows
*
- * $Id: capture.c,v 1.196 2002/12/08 22:35:30 guy Exp $
+ * $Id: capture.c,v 1.197 2002/12/18 06:44:50 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1880,7 +1880,7 @@ capture(gboolean *stats_known, struct pcap_stat *stats)
/* calculate and display running time */
cur_time -= start_time;
snprintf(label_str, sizeof(label_str), "%02ld:%02ld:%02ld",
- (long)(cur_time/3600), (long)(cur_time/60%3600),
+ (long)(cur_time/3600), (long)((cur_time%3600)/60),
(long)(cur_time%60));
gtk_label_set(GTK_LABEL(running_time), label_str);