Open ghost opened 5 years ago
The bug seems to be in the file hammr/commands/quota/quota.py, on the line 69 when we run the command:
ascii_bar_graph.print_graph(values)
We have 2 choices:
In the file: hammr/commands/quota/quota.py
if quota.limit != -1:
nb = float(quota.nb)
limit = float(quota.limit)
values[text] = (nb/limit) * 50
else:
values[text] = -1
to
if quota.limit != -1:
nb = float(quota.nb)
limit = float(quota.limit)
value = (nb/limit) * 50
if value >= 50:
values[text] = 50
then:
values[text] = value
else:
values[text] = -1
Here the result:
Getting quotas for [bastien.martin] ...
Generations (2) --------------------UNLIMITED---------------------
Scan (1) --------------------UNLIMITED---------------------
Disk usage (4G/3G) ||||||||||||||||||||||||||||||||||||||||||||||||||
Templates (2) --------------------UNLIMITED---------------------
Hello,
Environment
Steps to reproduce