diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-12-14 01:15:07 +0100 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-12-14 01:15:07 +0100 |
commit | a9e94a34c9a80929d606c4d64711ad8ecaff35e0 (patch) | |
tree | 94efda2ad92f1214b914d134b00c012e47a1a685 /settings/personal.php | |
parent | c67c933d3fbc0fbf0b594fb4c2236118bed10e21 (diff) | |
download | nextcloud-server-a9e94a34c9a80929d606c4d64711ad8ecaff35e0.tar.gz nextcloud-server-a9e94a34c9a80929d606c4d64711ad8ecaff35e0.zip |
use fscache for getting used space
Diffstat (limited to 'settings/personal.php')
-rw-r--r-- | settings/personal.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/settings/personal.php b/settings/personal.php index c27ca0aed63..c7964a2ef5a 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -16,7 +16,8 @@ OC_Util::addStyle( '3rdparty', 'chosen' ); OC_App::setActiveNavigationEntry( 'personal' ); // calculate the disc space -$used=OC_Filesystem::filesize('/'); +$rootInfo=OC_FileCache::get(''); +$used=$rootInfo['size']; $free=OC_Filesystem::free_space(); $total=$free+$used; $relative=round(($used/$total)*10000)/100; |