From 7efbdb52f6037a72e6b96abe7361ad8be453008e Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Thu, 4 Oct 2012 12:58:57 +0200 Subject: donĀ“t show negative numbers. this is only a quickfix. I still dont get why the Shared folder can be bigger than the root folder. Perhaps a inconsitency in the filecache? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings/personal.php | 1 + 1 file changed, 1 insertion(+) (limited to 'settings') diff --git a/settings/personal.php b/settings/personal.php index 4f92985c797..9297f5d91cc 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 -- cgit v1.2.3