summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-01-09 12:17:11 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-01-09 12:17:11 +0100
commit432d9d0db70d55a3ad7f5e3deed39e5108679fff (patch)
treecf72d354d741d26e30af2a25adf110bf3521e708 /bin
parentd638780a2748c1815c488c50927e128278d683c4 (diff)
vdf -g: More compact output
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vdf8
1 files 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);
}