diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-21 23:07:33 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-21 23:07:33 +0000 |
commit | c702e92121ec5477ecc25a87b00bf478b42c1dc7 (patch) | |
tree | 962e68606a5718b59153d14ee28c319eb29a904b /ui/gtk/io_stat.c | |
parent | 74b6c5949957411e5ce95e5e4b1a34997cf31b09 (diff) | |
download | wireshark-c702e92121ec5477ecc25a87b00bf478b42c1dc7.tar.gz |
Replace relative timestamp with reference frame number. Saves 16B per frame.
svn path=/trunk/; revision=50772
Diffstat (limited to 'ui/gtk/io_stat.c')
-rw-r--r-- | ui/gtk/io_stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gtk/io_stat.c b/ui/gtk/io_stat.c index a6c6d09e2a..86d97b522c 100644 --- a/ui/gtk/io_stat.c +++ b/ui/gtk/io_stat.c @@ -290,7 +290,7 @@ tap_iostat_packet(void *g, packet_info *pinfo, epan_dissect_t *edt, const void * /* * Find in which interval this is supposed to go and store the interval index as idx */ - time_delta = pinfo->fd->rel_ts; + time_delta = pinfo->rel_ts; if (time_delta.nsecs<0) { time_delta.secs--; time_delta.nsecs += 1000000000; @@ -313,7 +313,7 @@ tap_iostat_packet(void *g, packet_info *pinfo, epan_dissect_t *edt, const void * /* set start time */ if ((io->start_time.secs == 0) && (io->start_time.nsecs == 0)) { - nstime_delta(&io->start_time, &pinfo->fd->abs_ts, &pinfo->fd->rel_ts); + nstime_delta(&io->start_time, &pinfo->fd->abs_ts, &pinfo->rel_ts); } /* Point to the appropriate io_item_t struct */ @@ -425,7 +425,7 @@ tap_iostat_packet(void *g, packet_info *pinfo, epan_dissect_t *edt, const void * j = idx; /* * Handle current interval */ - pt = pinfo->fd->rel_ts.secs * 1000000 + pinfo->fd->rel_ts.nsecs / 1000; + pt = pinfo->rel_ts.secs * 1000000 + pinfo->rel_ts.nsecs / 1000; pt = pt % (io->interval * 1000); if (pt > t) { pt = t; |