while some people write percentages as 0.XX , putting a % next to that is just
confusing. also, combined with the format modifier this would be rather lossy,
and also not match regular `df` output..
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
my $used = $format->($df->{used});
my $avail = $format->($df->{avail});
- my $pc = sprintf('%.1f', $df->{used}/$df->{total});
+ my $pc = sprintf('%.1f', 100 * $df->{used} / $df->{total});
my $entry = [ $name, $mp->{volume}, $total, $used, $avail, $pc, $path ];
push @list, $entry;