summaryrefslogtreecommitdiffstats
path: root/settings/personal.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/personal.php')
-rw-r--r--settings/personal.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/settings/personal.php b/settings/personal.php
index 4f92985c797..2031edd8df8 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -18,12 +18,8 @@ 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;
if($total==0) $total=1; // prevent division by zero