summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-09-28 21:38:15 +0200
committerGitHub <noreply@github.com>2017-09-28 21:38:15 +0200
commit7a5762f4946c9e80a1636109e9f79f2d293edbbe (patch)
tree34fa37c928e8b5885513da7dea089cfd5630682b
parentd58c0e68343185fe37293fa3901ced348e23bb9b (diff)
parente9aa11a1b08c54c80995a065383423f4f1a0a0ed (diff)
downloadnextcloud-server-7a5762f4946c9e80a1636109e9f79f2d293edbbe.tar.gz
nextcloud-server-7a5762f4946c9e80a1636109e9f79f2d293edbbe.zip
Merge pull request #6691 from nextcloud/rounding
Use full percentages in quota bar percentages
-rw-r--r--lib/private/Settings/Personal/PersonalInfo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Settings/Personal/PersonalInfo.php b/lib/private/Settings/Personal/PersonalInfo.php
index e92541c0010..389257cf892 100644
--- a/lib/private/Settings/Personal/PersonalInfo.php
+++ b/lib/private/Settings/Personal/PersonalInfo.php
@@ -116,7 +116,7 @@ class PersonalInfo implements ISettings {
$parameters = [
'total_space' => $totalSpace,
'usage' => \OC_Helper::humanFileSize($storageInfo['used']),
- 'usage_relative' => $storageInfo['relative'],
+ 'usage_relative' => round($storageInfo['relative']),
'quota' => $storageInfo['quota'],
'avatarChangeSupported' => $user->canChangeAvatar(),
'lookupServerUploadEnabled' => $lookupServerUploadEnabled,