mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-02 00:05:27 +00:00
fix: ValueError: math domain error" in table mode when displaying a server replay flow #3778
This commit is contained in:
parent
184384af57
commit
d7f43e72ca
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user