diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-06-24 18:33:10 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-06-24 18:33:10 +0200 |
commit | d059ee34a09fe32e56a236d9ff2c5d9060b2f063 (patch) | |
tree | 9024eac319ad59f0bf7937d6c97fc0f72a281bc4 /apps/files/lib/Controller | |
parent | f310b964d453ed0192661d005e5f575918bda2c7 (diff) | |
download | nextcloud-server-d059ee34a09fe32e56a236d9ff2c5d9060b2f063.tar.gz nextcloud-server-d059ee34a09fe32e56a236d9ff2c5d9060b2f063.zip |
Show used space in mb instead of %
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/files/lib/Controller')
-rw-r--r-- | apps/files/lib/Controller/ViewController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index cf1b4374da4..49f1818780b 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -227,7 +227,7 @@ class ViewController extends Controller { $nav->assign('navigationItems', $navItems); - $nav->assign('usage', \OC_Helper::humanFileSize($storageInfo['used'])); + $nav->assign('usage', \OC_Helper::humanFileSize(ceil($storageInfo['used'] / 102400) * 102400)); if ($storageInfo['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) { $totalSpace = $this->l10n->t('Unlimited'); } else { |