mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-08 11:10:21 +00:00
Merge pull request #3779 from ylmrx/fix_negative_duration
fix: ValueError: math domain error" in table mode #3778
This commit is contained in:
commit
ffbe558b6c
@ -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