Skip to content
Snippets Groups Projects
Commit 4c4fd36b authored by Robin Appelman's avatar Robin Appelman
Browse files

the Shared folder is no longer in the cache

parent 3c3e8c6c
No related branches found
No related tags found
No related merge requests found
...@@ -18,12 +18,7 @@ OC_App::setActiveNavigationEntry( 'personal' ); ...@@ -18,12 +18,7 @@ OC_App::setActiveNavigationEntry( 'personal' );
// calculate the disc space // calculate the disc space
$rootInfo=OC_FileCache::get(''); $rootInfo=OC_FileCache::get('');
$sharedInfo=OC_FileCache::get('/Shared'); $sharedInfo=OC_FileCache::get('/Shared');
if (!isset($sharedInfo['size'])) { $used=$rootInfo['size'];
$sharedSize = 0;
} else {
$sharedSize = $sharedInfo['size'];
}
$used=$rootInfo['size']-$sharedSize;
if($used<0) $used=0; if($used<0) $used=0;
$free=OC_Filesystem::free_space(); $free=OC_Filesystem::free_space();
$total=$free+$used; $total=$free+$used;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment