diff options
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/Vstat.pm')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Vstat.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Vstat.pm b/usr.sbin/pkg_add/OpenBSD/Vstat.pm index fe4bd7337a4..d88e198748f 100644 --- a/usr.sbin/pkg_add/OpenBSD/Vstat.pm +++ b/usr.sbin/pkg_add/OpenBSD/Vstat.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Vstat.pm,v 1.14 2006/02/07 10:56:55 espie Exp $ +# $OpenBSD: Vstat.pm,v 1.15 2007/02/24 18:45:11 espie Exp $ # # Copyright (c) 2003-2004 Marc Espie <espie@openbsd.org> # @@ -165,7 +165,12 @@ sub tally() { while (my ($device, $data) = each %$devinfo) { if ($data->{used} != 0) { - print $device, ": ", $data->{used}, " bytes\n"; + print $device, ": ", $data->{used}, " bytes"; + my $avail = $data->avail(); + if ($avail < 0) { + print " (missing ", int(-$avail+1), " blocks)"; + } + print "\n"; } } } |