aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/flowdetailview.py
diff options
context:
space:
mode:
authorMarcelo Glezer <mg@tekii.com.ar>2015-03-02 18:30:46 -0300
committerMarcelo Glezer <mg@tekii.com.ar>2015-03-02 18:30:46 -0300
commit91e5a4a4b5bf1beb083afb0731294cfeaca62944 (patch)
treedf980ee82d24929d4d2cc94d7668b88be9fcb49c /libmproxy/console/flowdetailview.py
parent8008a4336d85f4d34bd9f192c5f3e510f4adf5cd (diff)
downloadmitmproxy-91e5a4a4b5bf1beb083afb0731294cfeaca62944.tar.gz
mitmproxy-91e5a4a4b5bf1beb083afb0731294cfeaca62944.tar.bz2
mitmproxy-91e5a4a4b5bf1beb083afb0731294cfeaca62944.zip
#487 added microsecond support to format_timestamp and used in FlowDetailView. Still WIP.
Diffstat (limited to 'libmproxy/console/flowdetailview.py')
-rw-r--r--libmproxy/console/flowdetailview.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/libmproxy/console/flowdetailview.py b/libmproxy/console/flowdetailview.py
index 51ae8da6..d0326f1a 100644
--- a/libmproxy/console/flowdetailview.py
+++ b/libmproxy/console/flowdetailview.py
@@ -40,8 +40,8 @@ class FlowDetailsView(urwid.ListBox):
sc = self.flow.server_conn
parts = [
["Address", "%s:%s" % sc.address()],
- ["Start time", utils.format_timestamp(sc.timestamp_start)],
- ["End time", utils.format_timestamp(sc.timestamp_end) if sc.timestamp_end else "active"],
+ ["Start time", utils.format_timestamp(sc.timestamp_start, True)],
+ ["End time", utils.format_timestamp(sc.timestamp_end, True) if sc.timestamp_end else "active"],
]
text.extend(common.format_keyvals(parts, key="key", val="text", indent=4))
@@ -84,10 +84,10 @@ class FlowDetailsView(urwid.ListBox):
cc = self.flow.client_conn
parts = [
["Address", "%s:%s" % cc.address()],
- ["Start time", utils.format_timestamp(cc.timestamp_start)],
+ ["Start time", utils.format_timestamp(cc.timestamp_start, True)],
# ["Requests", "%s"%cc.requestcount],
- ["End time", utils.format_timestamp(cc.timestamp_end) if cc.timestamp_end else "active"],
+ ["End time", utils.format_timestamp(cc.timestamp_end, True) if cc.timestamp_end else "active"],
]
text.extend(common.format_keyvals(parts, key="key", val="text", indent=4))
-
+
return text