diff options
author | Marcelo Glezer <mg@tekii.com.ar> | 2015-03-02 18:30:46 -0300 |
---|---|---|
committer | Marcelo Glezer <mg@tekii.com.ar> | 2015-03-02 18:30:46 -0300 |
commit | 91e5a4a4b5bf1beb083afb0731294cfeaca62944 (patch) | |
tree | df980ee82d24929d4d2cc94d7668b88be9fcb49c /libmproxy/console | |
parent | 8008a4336d85f4d34bd9f192c5f3e510f4adf5cd (diff) | |
download | mitmproxy-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')
-rw-r--r-- | libmproxy/console/flowdetailview.py | 10 |
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 |