Sanity check disk space

This commit is contained in:
Jamie Cameron
2009-03-13 18:53:46 +00:00
parent 09081e07cc
commit 798c236ded

View File

@@ -84,7 +84,7 @@ if (@visible) {
if ($config{'show_used'}) {
# Add disk space used column
($total, $free) = &disk_space($minfo[2],$minfo[0]);
if ($total) {
if ($total && $total > $free) {
$pc = int(100*($total-$free) / $total);
push(@cols,
$pc >= 99 ? "<font color=red>$pc %</font>" :