summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-12-27 18:16:12 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-12-27 18:16:12 +0000
commit3362e174f6b70bbf95eacbfa78841470164fdf35 (patch)
tree6e28470c38c7260e44552b1dac41c8f78e288a94 /file.c
parent8fdfd98ad7a347f9fc8e2e2f48d46c5969967a9e (diff)
downloadwireshark-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.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/file.c b/file.c
index c87d5dbb4b..587c8cae4f 100644
--- a/file.c
+++ b/file.c
@@ -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