diff --git a/core/Command/User/Info.php b/core/Command/User/Info.php index 55298f0164caa..0843d842440d7 100644 --- a/core/Command/User/Info.php +++ b/core/Command/User/Info.php @@ -77,11 +77,11 @@ protected function getStorageInfo(IUser $user): array { return []; } return [ - 'free' => $storage['free'], - 'used' => $storage['used'], - 'total' => $storage['total'], - 'relative' => $storage['relative'], - 'quota' => $storage['quota'], + 'free' => \OC_Helper::humanFileSize($storage['free']), + 'used' => \OC_Helper::humanFileSize($storage['used']), + 'total' => \OC_Helper::humanFileSize($storage['total']), + 'usedSpacePercent' => $storage['relative'] . '%', + 'quota' => ($storage['quota'] >= 0) ? \OC_Helper::humanFileSize($storage['quota']) : $storage['quota'], ]; }