the Shared folder is no longer in the cache

This commit is contained in:
Robin Appelman 2012-10-13 14:32:23 +02:00
parent 3c3e8c6c98
commit 4c4fd36bdd
1 changed files with 1 additions and 6 deletions

View File

@ -18,12 +18,7 @@ OC_App::setActiveNavigationEntry( 'personal' );
// calculate the disc space
$rootInfo=OC_FileCache::get('');
$sharedInfo=OC_FileCache::get('/Shared');
if (!isset($sharedInfo['size'])) {
$sharedSize = 0;
} else {
$sharedSize = $sharedInfo['size'];
}
$used=$rootInfo['size']-$sharedSize;
$used=$rootInfo['size'];
if($used<0) $used=0;
$free=OC_Filesystem::free_space();
$total=$free+$used;