diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-12-27 18:16:12 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-12-27 18:16:12 +0000 |
commit | 3362e174f6b70bbf95eacbfa78841470164fdf35 (patch) | |
tree | 6e28470c38c7260e44552b1dac41c8f78e288a94 /file.c | |
parent | 8fdfd98ad7a347f9fc8e2e2f48d46c5969967a9e (diff) | |
download | wireshark-3362e174f6b70bbf95eacbfa78841470164fdf35.tar.gz |
From Jim Young via bug 5580: Only update the time elapsed between the previous displayed packet and this packet if the packet is actually displayed. Ref: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5580
svn path=/trunk/; revision=40304
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1978,11 +1978,12 @@ ref_time_packets(capture_file *cf) cf->elapsed_time = fdata->rel_ts; } - /* Get the time elapsed between the previous displayed packet and - this packet. */ - nstime_delta(&fdata->del_dis_ts, &fdata->abs_ts, &prev_dis_ts); - - prev_dis_ts = fdata->abs_ts; + /* If this frame is displayed, get the time elapsed between the + previous displayed packet and this packet. */ + if( fdata->flags.passed_dfilter ) { + nstime_delta(&fdata->del_dis_ts, &fdata->abs_ts, &prev_dis_ts); + prev_dis_ts = fdata->abs_ts; + } /* * Byte counts |