quota calculation fixed
This commit is contained in:
parent
c1df0539a0
commit
0469f529fa
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue