From 87022aef418b0c546fd6f6a20803476b23afbf35 Mon Sep 17 00:00:00 2001 From: Harm Kolk Date: Fri, 18 Oct 2019 10:59:27 +0200 Subject: [PATCH] change ms (milliseconds) abbreviation to us (microseconds) Almost had a heart attack when parsing the output. Alternatively change this to a decimal to keep it in ms --- espr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espr.py b/espr.py index 9cafd19..41bea13 100755 --- a/espr.py +++ b/espr.py @@ -57,7 +57,7 @@ def print_node(node, verbose=False): INDENT = ' ' depth = node.get('depth', 0) - print('{}> {} {} ms'.format( + print('{}> {} {} us'.format( depth*INDENT, node.get('type'), int(node.get('time_in_nanos'))/1000