From 432d9d0db70d55a3ad7f5e3deed39e5108679fff Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 9 Jan 2011 12:17:11 +0100 Subject: vdf -g: More compact output --- bin/vdf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/vdf b/bin/vdf index 871a4a9..d4aad7b 100755 --- a/bin/vdf +++ b/bin/vdf @@ -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); } -- cgit v1.2.3