diff --git a/mogadm b/mogadm index 0bb7764..61b47a2 100755 --- a/mogadm +++ b/mogadm @@ -824,7 +824,7 @@ sub cmd_device_list { } print "$host->{hostname} [$hostid]: $host->{status}\n"; - printf "%6s %-10s %7s %7s %7s %7s\n", '', '', 'used(G)', 'free(G)', 'total(G)', 'weight(%)'; + printf "%7s %-7s %10s %10s %10s %10s\n", '', '', 'used(G)', 'free(G)', 'total(G)', 'weight(%)'; foreach my $devid (sort keys %{$devs->{$hostid} || {}}) { my $dev = $devs->{$hostid}->{$devid}; next if $dev->{status} eq "dead" && ! $args->{all}; @@ -832,7 +832,7 @@ sub cmd_device_list { my $total = $dev->{mb_total} / 1024; my $used = $dev->{mb_used} / 1024; my $free = $total - $used; - printf "%6s: %-10s %-7.3f %-7.3f %-7.3f % 3u\n", "dev$devid", $dev->{status}, $used, $free, $total, $dev->{weight}; + printf "%7s: %7s %10.3f %10.3f %10.3f %10u\n", "dev$devid", $dev->{status}, $used, $free, $total, $dev->{weight}; } print "\n";