don't add the "Shared"-directory size to users quota

This commit is contained in:
Bjoern Schiessle 2012-06-18 15:35:22 +02:00
parent 9d0cfacd67
commit ca41f2e96a
1 changed files with 2 additions and 1 deletions

View File

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