Ensure the "Delta time displayed" is always zero for the first displayed

packet, and not the delta from the first captured package.

svn path=/trunk/; revision=33301
This commit is contained in:
Stig Bjørlykke 2010-06-23 11:57:16 +00:00
parent 1fce0a0ac2
commit 3ba2260b8b
1 changed files with 7 additions and 8 deletions

View File

@ -233,13 +233,6 @@ frame_data_set_before_dissect(frame_data *fdata,
if(fdata->flags.ref_time)
*first_ts = fdata->abs_ts;
/* If we don't have the time stamp of the previous displayed packet,
it's because this is the first packet that's being displayed. Save the time
stamp of this packet as the time stamp of the previous displayed
packet. */
if (nstime_is_unset(prev_dis_ts))
*prev_dis_ts = fdata->abs_ts;
/* If we don't have the time stamp of the previous captured packet,
it's because this is the first packet. Save the time
stamp of this packet as the time stamp of the previous captured
@ -260,7 +253,13 @@ frame_data_set_before_dissect(frame_data *fdata,
/* Get the time elapsed between the previous displayed packet and
this packet. */
nstime_delta(&fdata->del_dis_ts, &fdata->abs_ts, prev_dis_ts);
if (nstime_is_unset(prev_dis_ts))
/* If we don't have the time stamp of the previous displayed packet,
it's because we have no displayed packets prior to this.
Set the delta time to zero. */
nstime_set_zero(&fdata->del_dis_ts);
else
nstime_delta(&fdata->del_dis_ts, &fdata->abs_ts, prev_dis_ts);
/* Get the time elapsed between the previous captured packet and
this packet. */