diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-10-04 12:58:57 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-10-04 12:58:57 +0200 |
commit | 7efbdb52f6037a72e6b96abe7361ad8be453008e (patch) | |
tree | e5a8cfb46352810a1e7a99879c387394bcfd235c | |
parent | 16eade5a3b2c38d25dea16da027222cc122b5c6a (diff) | |
download | nextcloud-server-7efbdb52f6037a72e6b96abe7361ad8be453008e.tar.gz nextcloud-server-7efbdb52f6037a72e6b96abe7361ad8be453008e.zip |
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?
-rw-r--r-- | settings/personal.php | 1 |
1 files changed, 1 insertions, 0 deletions
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 |