ignore "Shared"-directory when calculating free space

This commit is contained in:
Bjoern Schiessle 2012-06-18 17:23:54 +02:00
parent 405ac36e0c
commit d496a5e19f
1 changed files with 2 additions and 0 deletions

View File

@ -55,7 +55,9 @@ class OC_FileProxy_Quota extends OC_FileProxy{
*/
private function getFreeSpace(){
$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'];
$totalSpace=$this->getQuota();
if($totalSpace==0){
return 0;