diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-01-09 12:17:11 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-01-09 12:17:11 +0100 |
commit | 432d9d0db70d55a3ad7f5e3deed39e5108679fff (patch) | |
tree | cf72d354d741d26e30af2a25adf110bf3521e708 | |
parent | d638780a2748c1815c488c50927e128278d683c4 (diff) |
vdf -g: More compact output
-rwxr-xr-x | bin/vdf | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -125,7 +125,7 @@ sub show_df_console { } sub show_df_png { - my $spacing = 40; + my $spacing = 35; my $h = @mounts * $spacing; my $w = 220; my $im = GD::Image->new($w, $h); @@ -143,11 +143,11 @@ sub show_df_png { my $mount = $mounts[$i]; my $percent = $mount->[4]->{'used'} * 100 / $mount->[4]->{'blocks'}; - $im->string(gdSmallFont, 10, $spacing * $i + 7, $mount->[1], + $im->string(gdSmallFont, 10, $spacing * $i + 4, $mount->[1], $black); - $im->string(gdSmallFont, $w - 46, $spacing * $i + 7, + $im->string(gdSmallFont, $w - 46, $spacing * $i + 4, sprintf("%6s", format_size($mount->[4]->{'bavail'})), $black); - $im->copy(bar_png($percent, $w - 20, 10), 10, $spacing * $i + 20, 0, + $im->copy(bar_png($percent, $w - 20, 10), 10, $spacing * $i + 17, 0, 0, $w - 20, 10); } |