Fix AgeStats gramplet

This commit is contained in:
Josip 2015-05-16 16:43:48 +02:00
parent 9f8ffc5226
commit 6e0e7d3763

View File

@ -249,9 +249,9 @@ class AgeStatsGramplet(Gramplet):
"""
# first, binify:
#print "create_bargraph", hash
bin = [0] * (max_val/bin_size)
bin = [0] * int(max_val/bin_size)
for value, hash_value in hash.items():
bin[value/bin_size] += hash_value
bin[int(value/bin_size)] += hash_value
text = ""
max_bin = float(max(bin))
if max_bin != 0: