diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-04-17 16:40:44 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-04-17 16:40:44 +0200 |
commit | 225ad85e909b3f65d8eda57ef13001b0000e4e76 (patch) | |
tree | 200a4b87436a3b5d07dd4f3dc6d1ecc9a840c2d8 /settings | |
parent | f7c708b22a12c976e8cd413c83d10deaf1268d64 (diff) | |
download | nextcloud-server-225ad85e909b3f65d8eda57ef13001b0000e4e76.tar.gz nextcloud-server-225ad85e909b3f65d8eda57ef13001b0000e4e76.zip |
add free_space to OC_FILESYSTEM
Diffstat (limited to 'settings')
-rw-r--r-- | settings/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/index.php b/settings/index.php index 521f2ade9da..0e3b3f28550 100644 --- a/settings/index.php +++ b/settings/index.php @@ -10,7 +10,7 @@ if( !OC_USER::isLoggedIn()){ $tmpl = new OC_TEMPLATE( "settings", "index", "admin"); $used=OC_FILESYSTEM::filesize('/'); -$free=disk_free_space(OC_CONFIG::getValue('datadirectory')); +$free=OC_FILESYSTEM::free_space(); $total=$free+$used; $relative=round(($used/$total)*100); $tmpl->assign('usage',OC_HELPER::humanFileSize($used)); |