Skip to content
Snippets Groups Projects
Commit d496a5e1 authored by Björn Schießle's avatar Björn Schießle
Browse files

ignore "Shared"-directory when calculating free space

parent 405ac36e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment