summaryrefslogtreecommitdiffstats
path: root/lib/fileproxy
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-19 09:35:13 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-19 09:35:13 +0200
commit0469f529fa3c5bb5c643f4c253f886f58ca50ba7 (patch)
tree9245a5a6ef2adab6492e318766332a6dd7178cdc /lib/fileproxy
parentc1df0539a087f2e8964357e96a05c6887b188c7f (diff)
downloadnextcloud-server-0469f529fa3c5bb5c643f4c253f886f58ca50ba7.tar.gz
nextcloud-server-0469f529fa3c5bb5c643f4c253f886f58ca50ba7.zip
quota calculation fixed
Diffstat (limited to 'lib/fileproxy')
-rw-r--r--lib/fileproxy/quota.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fileproxy/quota.php b/lib/fileproxy/quota.php
index dab41c5e906..b0c3775b9db 100644
--- a/lib/fileproxy/quota.php
+++ b/lib/fileproxy/quota.php
@@ -57,7 +57,7 @@ class OC_FileProxy_Quota extends OC_FileProxy{
$rootInfo=OC_FileCache_Cached::get('');
$sharedInfo=OC_FileCache_Cached::get('/Shared');
$usedSpace=isset($rootInfo['size'])?$rootInfo['size']:0;
- $usedSpace=isset($sharedInfo['size'])?$rootInfo['size']-$sharedInfo['size']:$rootInfo['size'];
+ $usedSpace=isset($sharedInfo['size'])?$usedSpace-$sharedInfo['size']:$usedSpace;
$totalSpace=$this->getQuota();
if($totalSpace==0){
return 0;