diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-18 15:35:22 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-18 15:35:22 +0200 |
commit | 2fd7df57d9255e9a8b2fa57c7e9fd435f2b44f98 (patch) | |
tree | 976019e89907b4b1d0ea0982664e6c01ed35e45a /settings/personal.php | |
parent | 91f69858e49c3981d31eeee428c7bf3cd5e142fe (diff) | |
download | nextcloud-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.php | 3 |
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 |