D4818: catapipe: fix bug introduced when switching to the timer api

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon Oct 1 13:10:47 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGcb9b23ec093c: catapipe: fix bug introduced when switching to the timer api (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D4818?vs=11513&id=11529

REVISION DETAIL
  https://phab.mercurial-scm.org/D4818

AFFECTED FILES
  contrib/catapipe.py

CHANGE DETAILS

diff --git a/contrib/catapipe.py b/contrib/catapipe.py
--- a/contrib/catapipe.py
+++ b/contrib/catapipe.py
@@ -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,



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list