diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-12-17 15:02:47 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-12-17 15:02:47 +0000 |
commit | 87e2aa33831124afc2d2cc9d62d1de50592a92e4 (patch) | |
tree | 9d70504297581999dc819a24e4984c28da3e9722 /dumpcap.c | |
parent | e79de9873d611ffdec6d787c1ada35f813f9f394 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |