changeset 40264:12e2e5cd5777

churn: remove redundant round() To my surprise, the int() is required. Spotted by Mads when he reviewed D5063. Thanks! Differential Revision: https://phab.mercurial-scm.org/D5086
author Augie Fackler <augie@google.com>
date Sat, 13 Oct 2018 09:47:53 -0400
parents 8cf459d8b111
children d6b7c4e77bb4
files hgext/churn.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/churn.py	Sat Oct 13 10:09:12 2018 +0200
+++ b/hgext/churn.py	Sat Oct 13 09:47:53 2018 -0400
@@ -205,7 +205,7 @@
                                     '*' * charnum(sum(count)))
 
     def charnum(count):
-        return int(round(count * width // maxcount))
+        return int(count * width // maxcount)
 
     for name, count in rate:
         ui.write(format(name, count))