summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-05-05 17:59:57 -0700
committerChristopher Ng <chrng8@gmail.com>2023-05-05 17:59:57 -0700
commit4e51f5224c0536c932753eeb21264594f99dcd73 (patch)
tree0c5a2ecfb0e22ebbd6043095e6e80c07b746f166 /apps/files_trashbin
parentc40d1b7dbc4b0c12ff08f300abdd93dbecba0396 (diff)
downloadnextcloud-server-4e51f5224c0536c932753eeb21264594f99dcd73.tar.gz
nextcloud-server-4e51f5224c0536c932753eeb21264594f99dcd73.zip
feat(UserMigration)!: 32-bit support
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php b/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php
index 70338a469d3..842721eeac9 100644
--- a/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php
+++ b/apps/files_trashbin/lib/UserMigration/TrashbinMigrator.php
@@ -67,7 +67,7 @@ class TrashbinMigrator implements IMigrator, ISizeEstimationMigrator {
/**
* {@inheritDoc}
*/
- public function getEstimatedExportSize(IUser $user): int {
+ public function getEstimatedExportSize(IUser $user): int|float {
$uid = $user->getUID();
try {
@@ -75,7 +75,7 @@ class TrashbinMigrator implements IMigrator, ISizeEstimationMigrator {
if (!$trashbinFolder instanceof Folder) {
return 0;
}
- return (int)ceil($trashbinFolder->getSize() / 1024);
+ return ceil($trashbinFolder->getSize() / 1024);
} catch (\Throwable $e) {
return 0;
}