catapipe: fix bug introduced when switching to the timer api
authorAugie Fackler <augie@google.com>
Mon, 01 Oct 2018 09:05:41 -0400
changeset 39940 cb9b23ec093c
parent 39939 a24f4638d6c1
child 39941 277a6fb460a6
catapipe: fix bug introduced when switching to the timer api Differential Revision: https://phab.mercurial-scm.org/D4818
contrib/catapipe.py
--- a/contrib/catapipe.py	Sun Sep 30 03:45:51 2018 +0530
+++ b/contrib/catapipe.py	Mon Oct 01 09:05:41 2018 -0400
@@ -71,7 +71,7 @@
                 if session not in _threadmap:
                     _threadmap[session] = len(_threadmap)
                 pid = _threadmap[session]
-                ts_micros = (now - start).total_seconds() * 1000000
+                ts_micros = (now - start) * 1000000
                 out.write(json.dumps(
                     {
                         "name": label,