From 58dba3f49083288e19f6e9edb7cc60e88dd446e3 Mon Sep 17 00:00:00 2001 From: Marcelo Glezer Date: Mon, 2 Mar 2015 23:22:44 -0300 Subject: fixed formatting and added a 'test' (sort of) --- libmproxy/console/flowdetailview.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libmproxy/console/flowdetailview.py') diff --git a/libmproxy/console/flowdetailview.py b/libmproxy/console/flowdetailview.py index d0326f1a..e1339d77 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, True)], - ["End time", utils.format_timestamp(sc.timestamp_end, True) if sc.timestamp_end else "active"], + ["Start time", utils.format_timestamp_with_milli(sc.timestamp_start)], + ["End time", utils.format_timestamp_with_milli(sc.timestamp_end) if sc.timestamp_end else "active"], ] text.extend(common.format_keyvals(parts, key="key", val="text", indent=4)) @@ -84,9 +84,9 @@ class FlowDetailsView(urwid.ListBox): cc = self.flow.client_conn parts = [ ["Address", "%s:%s" % cc.address()], - ["Start time", utils.format_timestamp(cc.timestamp_start, True)], + ["Start time", utils.format_timestamp_with_milli(cc.timestamp_start)], # ["Requests", "%s"%cc.requestcount], - ["End time", utils.format_timestamp(cc.timestamp_end, True) if cc.timestamp_end else "active"], + ["End time", utils.format_timestamp_with_milli(cc.timestamp_end) if cc.timestamp_end else "active"], ] text.extend(common.format_keyvals(parts, key="key", val="text", indent=4)) -- cgit v1.2.3