diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-09-01 13:51:13 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-09-02 23:53:37 +0000 |
commit | 5846524f0ba9389e3f4f03546db21782c2d22183 (patch) | |
tree | 0a557804da07c086f5d4cd6422765d3814e06b5a /ui/qt/capture_file.cpp | |
parent | df3bf9ca796dc2474c55c87f0ff8cb4eab63d2f6 (diff) | |
download | wireshark-5846524f0ba9389e3f4f03546db21782c2d22183.tar.gz |
Qt: Conversation time column updates.
Add a checkbox which lets you toggle between absolute and relative start
times. Use the local time for now. Fixes bug 11618.
Adjust our time precision based on the capture file's time precision.
Fixes bug 12803.
Update the User's Guide accordingly.
Bug: 11618
Bug: 12803
Change-Id: I0049d6db6e4d0b6967bf35e6d056a61bfb4de10f
Reviewed-on: https://code.wireshark.org/review/17448
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/capture_file.cpp')
-rw-r--r-- | ui/qt/capture_file.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/qt/capture_file.cpp b/ui/qt/capture_file.cpp index 2df533ea75..2c04a35261 100644 --- a/ui/qt/capture_file.cpp +++ b/ui/qt/capture_file.cpp @@ -99,6 +99,14 @@ struct _packet_info *CaptureFile::packetInfo() return NULL; } +int CaptureFile::timestampPrecision() +{ + if (capFile() && capFile()->wth) { + return wtap_file_tsprec(capFile()->wth); + } + return WTAP_TSPREC_UNKNOWN; +} + void CaptureFile::retapPackets() { if (cap_file_) { |