diff options
author | Yoann Lamouroux <ylamouroux@vente-privee.com> | 2020-01-10 18:10:24 +0100 |
---|---|---|
committer | Yoann Lamouroux <ylamouroux@vente-privee.com> | 2020-01-10 18:10:24 +0100 |
commit | d7f43e72ca643ac16e48f58d511cd2a4e6043b88 (patch) | |
tree | 87337144d1091785f280bfca383f9d24c982afc5 | |
parent | 184384af57e81bce09469e2fefe6dbb134eda6ce (diff) | |
download | mitmproxy-d7f43e72ca643ac16e48f58d511cd2a4e6043b88.tar.gz mitmproxy-d7f43e72ca643ac16e48f58d511cd2a4e6043b88.tar.bz2 mitmproxy-d7f43e72ca643ac16e48f58d511cd2a4e6043b88.zip |
fix: ValueError: math domain error" in table mode when displaying a server replay flow #3778
-rw-r--r-- | mitmproxy/tools/console/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/tools/console/common.py b/mitmproxy/tools/console/common.py index 325c5740..3dce8363 100644 --- a/mitmproxy/tools/console/common.py +++ b/mitmproxy/tools/console/common.py @@ -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, |