Skip to content

Commit

Permalink
Sanity check disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Mar 13, 2009
1 parent 798c236 commit 2da3418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mount/index.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -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 && $total > $free) {
if ($total > 0 && $total >= $free) {
$pc = int(100*($total-$free) / $total);
push(@cols,
$pc >= 99 ? "<font color=red>$pc %</font>" :
Expand Down

0 comments on commit 2da3418

Please sign in to comment.