From f099bd179a6ff86e3f9fd6b779ccad707f379aad Mon Sep 17 00:00:00 2001 From: Michael Tuexen Date: Wed, 14 Apr 2021 14:33:29 +0200 Subject: Fix conversation table when using epoch based time Ensure that if using tshark -q -t e -z conv,tcp the reported start time is relative to the epoch time and not relative to the time of the first packet in the capture file. Thanks to Theresa Enghardt for reporting the issue and to Peter Lei for initialy looking into it. --- ui/cli/tap-iousers.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ui/cli') diff --git a/ui/cli/tap-iousers.c b/ui/cli/tap-iousers.c index 3295b386d8..469dbdf147 100644 --- a/ui/cli/tap-iousers.c +++ b/ui/cli/tap-iousers.c @@ -58,6 +58,12 @@ iousers_draw(void *arg) printf("%s | Frames Size | | Frames Size | | Frames Size | Start | |\n", display_ports ? " " : ""); break; + case TS_EPOCH: + printf("%s | <- | | -> | | Total | Relative | Duration |\n", + display_ports ? " " : ""); + printf("%s | Frames Bytes | | Frames Bytes | | Frames Bytes | Start | |\n", + display_ports ? " " : ""); + break; case TS_RELATIVE: case TS_NOT_SET: default: @@ -207,6 +213,9 @@ iousers_draw(void *arg) } else printf("XXXX/XXX XX:XX:XX"); break; + case TS_EPOCH: + printf("%20.9f", nstime_to_sec(&iui->start_abs_time)); + break; case TS_RELATIVE: case TS_NOT_SET: default: -- cgit v1.2.3