Show More
@@ -149,8 +149,8 def churn(ui, repo, *pats, **opts): | |||||
149 | rate.sort(key=sortkey) |
|
149 | rate.sort(key=sortkey) | |
150 |
|
150 | |||
151 | # Be careful not to have a zero maxcount (issue833) |
|
151 | # Be careful not to have a zero maxcount (issue833) | |
152 |
maxcount = float(max( |
|
152 | maxcount = float(max(v for k, v in rate)) or 1.0 | |
153 |
maxname = max( |
|
153 | maxname = max(len(k) for k, v in rate) | |
154 |
|
154 | |||
155 | ttywidth = util.termwidth() |
|
155 | ttywidth = util.termwidth() | |
156 | ui.debug(_("assuming %i character terminal\n") % ttywidth) |
|
156 | ui.debug(_("assuming %i character terminal\n") % ttywidth) |
General Comments 0
You need to be logged in to leave comments.
Login now