summaryrefslogtreecommitdiffstats
path: root/settings/personal.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2012-06-18 15:35:22 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2012-06-18 15:35:22 +0200
commit2fd7df57d9255e9a8b2fa57c7e9fd435f2b44f98 (patch)
tree976019e89907b4b1d0ea0982664e6c01ed35e45a /settings/personal.php
parent91f69858e49c3981d31eeee428c7bf3cd5e142fe (diff)
downloadnextcloud-server-2fd7df57d9255e9a8b2fa57c7e9fd435f2b44f98.tar.gz
nextcloud-server-2fd7df57d9255e9a8b2fa57c7e9fd435f2b44f98.zip
don't add the "Shared"-directory size to users quota
Diffstat (limited to 'settings/personal.php')
-rw-r--r--settings/personal.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/personal.php b/settings/personal.php
index 64e08be89eb..26a9f601d9a 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -17,7 +17,8 @@ OC_App::setActiveNavigationEntry( 'personal' );
// calculate the disc space
$rootInfo=OC_FileCache::get('');
-$used=$rootInfo['size'];
+$sharedInfo=OC_FileCache::get('/Shared');
+$used=$rootInfo['size']-$sharedInfo['size'];
$free=OC_Filesystem::free_space();
$total=$free+$used;
if($total==0) $total=1; // prevent division by zero