]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't add the "Shared"-directory size to users quota
authorBjoern Schiessle <schiessle@owncloud.com>
Mon, 18 Jun 2012 13:35:22 +0000 (15:35 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Mon, 18 Jun 2012 13:35:22 +0000 (15:35 +0200)
settings/personal.php

index 64e08be89eb4b5d48494628f453fbfd9c0fe0eeb..26a9f601d9aa1dd45b9b3379d68999cdf0d0bbcb 100644 (file)
@@ -17,7 +17,8 @@ OC_App::setActiveNavigationEntry( 'personal' );
 
 // calculate the disc space
 $rootInfo=OC_FileCache::get('');
-$used=$rootInfo['size'];
+$sharedInfo=OC_FileCache::get('/Shared');\r
+$used=$rootInfo['size']-$sharedInfo['size'];
 $free=OC_Filesystem::free_space();
 $total=$free+$used;
 if($total==0) $total=1;  // prevent division by zero