fix: ValueError: math domain error" in table mode when displaying a server replay flow #3778

This commit is contained in:
Yoann Lamouroux 2020-01-10 18:10:24 +01:00
parent 184384af57
commit d7f43e72ca

View File

@ -543,7 +543,7 @@ def format_flow(f, focus, extended=False, hostheader=False, cols=False, layout='
duration = None duration = None
if f.response.timestamp_end and f.request.timestamp_start: 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( d.update(dict(
resp_code=f.response.status_code, resp_code=f.response.status_code,