--- scripts/diskfree.pl.orig Fri Apr 29 17:32:01 2005 +++ scripts/diskfree.pl Wed Mar 23 02:19:37 2005 @@ -1,6 +1,6 @@ #!/usr/bin/perl -$ret = `df --block-size=1024 -P $ARGV[0] | grep -v Filesystem`; +$ret = `df -k $ARGV[0] | grep -v Filesystem`; $ret =~ s/($ARGV[0])(.* )(.*[0-9])(.* )(.*[0-9])(.* )(.*[0-9])(.* )(.*[0-9])%(.* )//; print "megabytes:$7 percent:$9"; --- scripts/diskfree.sh.orig Fri Apr 29 17:32:01 2005 +++ scripts/diskfree.sh Wed Mar 23 02:19:47 2005 @@ -1,2 +1,2 @@ #!/bin/sh -df --block-size=1024 -P $1 | perl -ape '$F[4]=~tr/%//d;}{print "megabytes:$F[3] percent:$F[4]"'; +df -k $1 | perl -ape '$F[4]=~tr/%//d;}{print "megabytes:$F[3] percent:$F[4]"'; --- scripts/query_unix_partitions.pl.orig Sat Apr 30 01:50:01 2005 +++ scripts/query_unix_partitions.pl Sat Apr 30 01:50:13 2005 @@ -5,7 +5,7 @@ exit; } -open(DF, "/bin/df -P|"); +open(DF, "/bin/df -k|"); while () { #/dev/hda2 20157744 18553884 579860 97% /var