Merge pull request #16200 from nextcloud/revert/16049-wrong-round
Revert incorrect rouding
This commit is contained in:
commit
eaabe97373
2 changed files with 2 additions and 2 deletions
|
@ -230,7 +230,7 @@ class ViewController extends Controller {
|
|||
|
||||
$nav->assign('navigationItems', $navItems);
|
||||
|
||||
$nav->assign('usage', \OC_Helper::humanFileSize(ceil($storageInfo['used'] / 102400) * 102400));
|
||||
$nav->assign('usage', \OC_Helper::humanFileSize($storageInfo['used']));
|
||||
if ($storageInfo['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) {
|
||||
$totalSpace = $this->l10n->t('Unlimited');
|
||||
} else {
|
||||
|
|
|
@ -141,7 +141,7 @@ class ViewControllerTest extends TestCase {
|
|||
|
||||
$nav = new Template('files', 'appnavigation');
|
||||
$nav->assign('usage_relative', 123);
|
||||
$nav->assign('usage', '100 KB');
|
||||
$nav->assign('usage', '123 B');
|
||||
$nav->assign('quota', 100);
|
||||
$nav->assign('total_space', '100 B');
|
||||
//$nav->assign('webdavurl', '');
|
||||
|
|
Loading…
Reference in a new issue