summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorPellaeon Lin <nfsmwlin@gmail.com>2014-01-29 21:24:31 +0800
committerPellaeon Lin <nfsmwlin@gmail.com>2014-01-29 21:24:31 +0800
commit929c930b0afd682bb98eb389d7ebad91bb34d643 (patch)
tree20adfc5d00ded67604ca12404f9a34c537d1e570 /apps/files/lib
parent19675c2c9de3580c32ee24b22b8ded11dc110b1c (diff)
downloadnextcloud-server-929c930b0afd682bb98eb389d7ebad91bb34d643.tar.gz
nextcloud-server-929c930b0afd682bb98eb389d7ebad91bb34d643.zip
Use $storageInfo['free']
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/helper.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php
index e2f545e9e3f..21d1f50e587 100644
--- a/apps/files/lib/helper.php
+++ b/apps/files/lib/helper.php
@@ -6,7 +6,6 @@ class Helper
{
public static function buildFileStorageStatistics($dir) {
$l = new \OC_L10N('files');
- $freeSpace=\OCP\Util::freeSpace($dir);
$maxUploadFilesize = \OCP\Util::maxUploadFilesize($dir);
$maxHumanFilesize = \OCP\Util::humanFileSize($maxUploadFilesize);
$maxHumanFilesize = $l->t('Upload') . ' max. ' . $maxHumanFilesize;
@@ -16,7 +15,7 @@ class Helper
return array('uploadMaxFilesize' => $maxUploadFilesize,
'maxHumanFilesize' => $maxHumanFilesize,
- 'freeSpace' => $freeSpace,
+ 'freeSpace' => $storageInfo['free'],
'usedSpacePercent' => (int)$storageInfo['relative']);
}