summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2023-05-09 08:20:41 -0700
committerGitHub <noreply@github.com>2023-05-09 08:20:41 -0700
commit972b2097d03b1ce0a82b3035fd07a64d53f34a0c (patch)
tree479061fe67a317635275dcab00df10a8b5b324a0 /apps/files_trashbin
parent00480714389b56c240612651776b6dbc6ebbaf0b (diff)
parent4e51f5224c0536c932753eeb21264594f99dcd73 (diff)
downloadnextcloud-server-972b2097d03b1ce0a82b3035fd07a64d53f34a0c.tar.gz
nextcloud-server-972b2097d03b1ce0a82b3035fd07a64d53f34a0c.zip
Merge pull request #38104 from nextcloud/feat/um-32-bit
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;
}