summaryrefslogtreecommitdiffstats
path: root/lib/fileproxy
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-18 17:23:54 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-18 17:23:54 +0200
commitd496a5e19fbe70d2313cae17be0e788ac6487cd0 (patch)
tree9de4e4d5f4c2bffd9d8586072fc3c8e02950469e /lib/fileproxy
parent405ac36e0c34ec03fc00eab1ee57520c34cd7d28 (diff)
downloadnextcloud-server-d496a5e19fbe70d2313cae17be0e788ac6487cd0.tar.gz
nextcloud-server-d496a5e19fbe70d2313cae17be0e788ac6487cd0.zip
ignore "Shared"-directory when calculating free space
Diffstat (limited to 'lib/fileproxy')
-rw-r--r--lib/fileproxy/quota.php2
1 files changed, 2 insertions, 0 deletions
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;