From 7efbdb52f6037a72e6b96abe7361ad8be453008e Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Thu, 4 Oct 2012 12:58:57 +0200 Subject: [PATCH] =?UTF-8?q?don=C2=B4t=20show=20negative=20numbers.=20this?= =?UTF-8?q?=20is=20only=20a=20quickfix.=20I=20still=20dont=20get=20why=20t?= =?UTF-8?q?he=20Shared=20folder=20can=20be=20bigger=20than=20the=20root=20?= =?UTF-8?q?folder.=20Perhaps=20a=20inconsitency=20in=20the=20filecache=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings/personal.php | 1 + 1 file changed, 1 insertion(+) diff --git a/settings/personal.php b/settings/personal.php index 4f92985c79..9297f5d91c 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -24,6 +24,7 @@ if (!isset($sharedInfo['size'])) { $sharedSize = $sharedInfo['size']; } $used=$rootInfo['size']-$sharedSize; +if($used<0) $used=0; $free=OC_Filesystem::free_space(); $total=$free+$used; if($total==0) $total=1; // prevent division by zero