aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy
diff options
context:
space:
mode:
authorYoann Lamouroux <ylamouroux@vente-privee.com>2020-01-10 18:10:24 +0100
committerYoann Lamouroux <ylamouroux@vente-privee.com>2020-01-10 18:10:24 +0100
commitd7f43e72ca643ac16e48f58d511cd2a4e6043b88 (patch)
tree87337144d1091785f280bfca383f9d24c982afc5 /mitmproxy
parent184384af57e81bce09469e2fefe6dbb134eda6ce (diff)
downloadmitmproxy-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
Diffstat (limited to 'mitmproxy')
-rw-r--r--mitmproxy/tools/console/common.py2
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,