[root@server]# df -h /tmp
Filesystem Size Used Avail Use% Mounted onĀ
/dev/loop0 477M 2.4M 449M 1% /tmp
my $five_percent_of_available = ( $available * 0.05 );
if ( $five_percent_of_available > $tmpdsksize ) {
$tmpdsksize = $five_percent_of_available;
}
my $FOUR_GIG_k = ( 1024 * 1024 * 4 );
if ( $tmpdsksize > $FOUR_GIG_k ) {
$tmpdsksize = $FOUR_GIG_k;
}