mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
use fscache for getting used space
This commit is contained in:
parent
c67c933d3f
commit
a9e94a34c9
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue