Fix volume free percentage calculation

This commit is contained in:
2Shirt 2021-11-07 17:35:40 -07:00
parent 6f0ae5a6ad
commit 5fb6dc4205
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -308,7 +308,7 @@ def get_volume_usage(use_colors=False):
elif percent > 75:
color = 'YELLOW'
display_str = (
f'{free/total:>5.2f}% Free'
f'{free/total:>5.2%} Free'
f' ({bytes_to_string(free, 2):>10} / {bytes_to_string(total, 2):>10})'
)
if use_colors: