aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-11-23 11:24:53 +0100
committerVincent Petry <vincent@nextcloud.com>2022-11-23 20:43:08 +0100
commit7bcd4193b8f58ea36d76d03d672b1b5c92831dc1 (patch)
treeabffcdb6a119654bdfd09e09434dcac8d8ba949c
parentd524329ec3cb51484fa7218e9067a379546e5d20 (diff)
downloadnextcloud-server-7bcd4193b8f58ea36d76d03d672b1b5c92831dc1.tar.gz
nextcloud-server-7bcd4193b8f58ea36d76d03d672b1b5c92831dc1.zip
Float the quota
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
-rw-r--r--lib/private/legacy/OC_Helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index e2bd7de2fba..de42a7bc7fc 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -577,7 +577,7 @@ class OC_Helper {
/**
* Get storage info including all mount points and quota
*/
- private static function getGlobalStorageInfo(int $quota, IUser $user, IMountPoint $mount): array {
+ private static function getGlobalStorageInfo(float $quota, IUser $user, IMountPoint $mount): array {
$rootInfo = \OC\Files\Filesystem::getFileInfo('', 'ext');
$used = $rootInfo['size'];
if ($used < 0) {