Skip to content
Snippets Groups Projects
Commit 2fd7df57 authored by Björn Schießle's avatar Björn Schießle
Browse files

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

parent 91f69858
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment