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 { diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php index 00ea164752d..7f174b08a6c 100644 --- a/apps/files/templates/appnavigation.php +++ b/apps/files/templates/appnavigation.php @@ -17,9 +17,9 @@
t('%1$s%% of %2$s used', [round($_['usage_relative'], 1), $_['total_space']])); ?>
+t('%1$s of %2$s used', [$_['usage'], $_['total_space']])); ?>