Merge pull request #3779 from ylmrx/fix_negative_duration

fix: ValueError: math domain error" in table mode #3778
This commit is contained in:
Maximilian Hils 2020-01-10 18:45:45 +01:00 committed by GitHub
commit ffbe558b6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -543,7 +543,7 @@ def format_flow(f, focus, extended=False, hostheader=False, cols=False, layout='
duration = None
if f.response.timestamp_end and f.request.timestamp_start:
duration = f.response.timestamp_end - f.request.timestamp_start
duration = max([f.response.timestamp_end - f.request.timestamp_start, 0])
d.update(dict(
resp_code=f.response.status_code,