forked from osmocom/wireshark
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.
This commit is contained in:
parent
4c42707f66
commit
f099bd179a
|
@ -58,6 +58,12 @@ iousers_draw(void *arg)
|
||||||
printf("%s | Frames Size | | Frames Size | | Frames Size | Start | |\n",
|
printf("%s | Frames Size | | Frames Size | | Frames Size | Start | |\n",
|
||||||
display_ports ? " " : "");
|
display_ports ? " " : "");
|
||||||
break;
|
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_RELATIVE:
|
||||||
case TS_NOT_SET:
|
case TS_NOT_SET:
|
||||||
default:
|
default:
|
||||||
|
@ -207,6 +213,9 @@ iousers_draw(void *arg)
|
||||||
} else
|
} else
|
||||||
printf("XXXX/XXX XX:XX:XX");
|
printf("XXXX/XXX XX:XX:XX");
|
||||||
break;
|
break;
|
||||||
|
case TS_EPOCH:
|
||||||
|
printf("%20.9f", nstime_to_sec(&iui->start_abs_time));
|
||||||
|
break;
|
||||||
case TS_RELATIVE:
|
case TS_RELATIVE:
|
||||||
case TS_NOT_SET:
|
case TS_NOT_SET:
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue