churn: remove redundant round()
authorAugie Fackler <augie@google.com>
Sat, 13 Oct 2018 09:47:53 -0400
changeset 40264 12e2e5cd5777
parent 40263 8cf459d8b111
child 40265 d6b7c4e77bb4
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
hgext/churn.py
--- 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))