From 798c236ded0c3a3aaa5cb2d0a25eb889de1ff042 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 13 Mar 2009 18:53:46 +0000 Subject: [PATCH] Sanity check disk space --- mount/index.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mount/index.cgi b/mount/index.cgi index f8d6a4f58..4077407bf 100755 --- a/mount/index.cgi +++ b/mount/index.cgi @@ -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 ? "$pc %" :