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

remotes/origin/stable45
Bjoern Schiessle 14 years ago
parent 91f69858e4
commit 2fd7df57d9
  1. 3
      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

Loading…
Cancel
Save