quota calculation fixed
This commit is contained in:
parent
244920aeb0
commit
1b142a1155
|
@ -57,7 +57,7 @@ class OC_FileProxy_Quota extends OC_FileProxy{
|
||||||
$rootInfo=OC_FileCache::get('');
|
$rootInfo=OC_FileCache::get('');
|
||||||
$sharedInfo=OC_FileCache::get('/Shared');
|
$sharedInfo=OC_FileCache::get('/Shared');
|
||||||
$usedSpace=isset($rootInfo['size'])?$rootInfo['size']:0;
|
$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();
|
$totalSpace=$this->getQuota();
|
||||||
if($totalSpace==0){
|
if($totalSpace==0){
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue