From d496a5e19fbe70d2313cae17be0e788ac6487cd0 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 18 Jun 2012 17:23:54 +0200 Subject: ignore "Shared"-directory when calculating free space --- lib/fileproxy/quota.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/fileproxy') diff --git a/lib/fileproxy/quota.php b/lib/fileproxy/quota.php index f061d48219b..dab41c5e906 100644 --- a/lib/fileproxy/quota.php +++ b/lib/fileproxy/quota.php @@ -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; -- cgit v1.2.3