quota calculation fixed

This commit is contained in:
Bjoern Schiessle 2012-06-19 09:35:13 +02:00
parent c1df0539a0
commit 0469f529fa

View file

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