Skip to content

Commit

Permalink
Correctly compute the minutes portion of the elapsed time.
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=6797
  • Loading branch information
guyharris committed Dec 18, 2002
1 parent 020effa commit 462a1b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capture.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 462a1b8

Please sign in to comment.