diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-08-10 11:22:50 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2022-08-10 11:22:50 +0200 |
commit | f6bdaac88e9300199f5fa4eb91fc868d042d185d (patch) | |
tree | a528f45363f711fd653253737ac7b0ffb5984bbf /apps/files/lib | |
parent | fe2f8b5d189cbcda8c4f197197169a6e015d6622 (diff) | |
download | nextcloud-server-f6bdaac88e9300199f5fa4eb91fc868d042d185d.tar.gz nextcloud-server-f6bdaac88e9300199f5fa4eb91fc868d042d185d.zip |
Use total available space rather than quota when updating the display
The initial quota display uses the total available space rather than the
quota. Moreover, the relative usage is based on the total space rather
than the quota. Due to this now the total available space is also used
when updating the quota display.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Helper.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/lib/Helper.php b/apps/files/lib/Helper.php index 18fea3aa2a1..22744e5940f 100644 --- a/apps/files/lib/Helper.php +++ b/apps/files/lib/Helper.php @@ -58,6 +58,7 @@ class Helper { 'maxHumanFilesize' => $maxHumanFileSize, 'freeSpace' => $storageInfo['free'], 'quota' => $storageInfo['quota'], + 'total' => $storageInfo['total'], 'used' => $storageInfo['used'], 'usedSpacePercent' => (int)$storageInfo['relative'], 'owner' => $storageInfo['owner'], |