ignore "Shared"-directory when calculating free space
Conflicts: lib/fileproxy/quota.php
This commit is contained in:
parent
ca41f2e96a
commit
814cab97cf
|
@ -54,8 +54,10 @@ class OC_FileProxy_Quota extends OC_FileProxy{
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
private function getFreeSpace(){
|
private function getFreeSpace(){
|
||||||
$rootInfo=OC_FileCache::get('');
|
$rootInfo=OC_FileCache_Cached::get('');
|
||||||
$usedSpace=$rootInfo['size'];
|
$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();
|
$totalSpace=$this->getQuota();
|
||||||
if($totalSpace==0){
|
if($totalSpace==0){
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue