Fix AgeStats gramplet for Python3
This commit is contained in:
parent
136bdd015a
commit
9c34e17bd9
@ -249,9 +249,9 @@ class AgeStatsGramplet(Gramplet):
|
|||||||
"""
|
"""
|
||||||
# first, binify:
|
# first, binify:
|
||||||
#print "create_bargraph", hash
|
#print "create_bargraph", hash
|
||||||
bin = [0] * (max_val/bin_size)
|
bin = [0] * int(max_val/bin_size)
|
||||||
for value, hash_value in hash.items():
|
for value, hash_value in hash.items():
|
||||||
bin[value/bin_size] += hash_value
|
bin[int(value/bin_size)] += hash_value
|
||||||
text = ""
|
text = ""
|
||||||
max_bin = float(max(bin))
|
max_bin = float(max(bin))
|
||||||
if max_bin != 0:
|
if max_bin != 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user