quota calculation fixed
This commit is contained in:
parent
244920aeb0
commit
1b142a1155
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class OC_FileProxy_Quota extends OC_FileProxy{
|
|||
$rootInfo=OC_FileCache::get('');
|
||||
$sharedInfo=OC_FileCache::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;
|
||||
|
|
Loading…
Reference in a new issue