quota calculation fixed

This commit is contained in:
Bjoern Schiessle 2012-06-19 09:35:13 +02:00
parent 244920aeb0
commit 1b142a1155

View file

@ -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;