aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2013-12-17 15:02:47 +0000
committerBill Meier <wmeier@newsguy.com>2013-12-17 15:02:47 +0000
commit87e2aa33831124afc2d2cc9d62d1de50592a92e4 (patch)
tree9d70504297581999dc819a24e4984c28da3e9722 /dumpcap.c
parente79de9873d611ffdec6d787c1ada35f813f9f394 (diff)
From "bd": Fix " Wireshark stops showing new packets but dumpcap keeps writing them to the temp file"
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9571 From me: Fixed in a slightly different manner than sugested in the patch attached to the bug. svn path=/trunk/; revision=54181
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 4ce5391ef6..8841e7b755 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -3696,8 +3696,8 @@ capture_loop_start(capture_options *capture_opts, gboolean *stats_known, struct
if ((cur_time - upd_time) > DUMPCAP_UPD_TIME) { /* wrap just causes an extra update */
#else
gettimeofday(&cur_time, NULL);
- if ((cur_time.tv_sec * 1000000 + cur_time.tv_usec) >
- (upd_time.tv_sec * 1000000 + upd_time.tv_usec + DUMPCAP_UPD_TIME*1000)) {
+ if (((guint64)cur_time.tv_sec * 1000000 + cur_time.tv_usec) >
+ ((guint64)upd_time.tv_sec * 1000000 + upd_time.tv_usec + DUMPCAP_UPD_TIME*1000)) {
#endif
upd_time = cur_time;