aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@wireshark.org>2021-04-14 14:33:29 +0200
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-04-15 03:42:47 +0000
commitf099bd179a6ff86e3f9fd6b779ccad707f379aad (patch)
tree32acfa53a039f0c772ca3e47f0451b74016fbc76 /ui
parent4c42707f66091d8e3b9ae485d85341fd89f64566 (diff)
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.
Diffstat (limited to 'ui')
-rw-r--r--ui/cli/tap-iousers.c9
1 files changed, 9 insertions, 0 deletions
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: