diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-08-10 11:23:27 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-08-10 11:23:27 +0200 |
commit | 4c837dadf2cd8cb33621ded1da4b4ac9c3a2b5f3 (patch) | |
tree | 83b26ae4f543d624639a43bfb09e408fedaae1c9 /apps/files/lib/Helper.php | |
parent | f6bdaac88e9300199f5fa4eb91fc868d042d185d (diff) | |
download | nextcloud-server-4c837dadf2cd8cb33621ded1da4b4ac9c3a2b5f3.tar.gz nextcloud-server-4c837dadf2cd8cb33621ded1da4b4ac9c3a2b5f3.zip |
Show usage percenteage in the tooltip
The tooltip of the initial quota display showed the usage percenteage
and the total available space. However, the total available space was
redundant, as it was shown just below. The tooltip of the updated quota
display showed the usage percenteage, but based on the quota rather than
the total available space, so there was a mismatch between the tooltip
and the bar below. Now the tooltip of the initial and the updated quota
display both show just the usage percenteage based on the total
available space.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files/lib/Helper.php')
-rw-r--r-- | apps/files/lib/Helper.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Helper.php b/apps/files/lib/Helper.php index 22744e5940f..1d9591cafe0 100644 --- a/apps/files/lib/Helper.php +++ b/apps/files/lib/Helper.php @@ -60,7 +60,7 @@ class Helper { 'quota' => $storageInfo['quota'], 'total' => $storageInfo['total'], 'used' => $storageInfo['used'], - 'usedSpacePercent' => (int)$storageInfo['relative'], + 'usedSpacePercent' => $storageInfo['relative'], 'owner' => $storageInfo['owner'], 'ownerDisplayName' => $storageInfo['ownerDisplayName'], 'mountType' => $storageInfo['mountType'], |