Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Round estimated size before sending response and add units
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal authored and backportbot-nextcloud[bot] committed Jun 10, 2022
commit 27cc973ebc5d0c33d83f30778b3440af29da31d0
3 changes: 2 additions & 1 deletion lib/Controller/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ public function exportable(?array $migrators): DataResponse {
}

return new DataResponse([
'size' => $size,
'size' => round($size, -2),
'units' => 'KiB',
'warning' => $warning ?? null,
], Http::STATUS_OK);
}
Expand Down