Skip to content
Snippets Groups Projects
Commit 12e2e5cd authored by Augie Fackler's avatar Augie Fackler
Browse files

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
parent 8cf459d8
No related branches found
No related tags found
No related merge requests found
......@@ -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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment