Skip to content
Prev Previous commit
Next Next commit
Use MiB in not exportable message
Signed-off-by: Christopher Ng <[email protected]>
  • Loading branch information
Pytal committed Jun 10, 2022
commit c1f4d48b4cf7b96c40d904a1a4a2802433d32520
4 changes: 2 additions & 2 deletions lib/Service/UserMigrationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ public function checkExportability(IUser $user, ?array $filteredMigratorList = n
throw new NotExportableException('Error estimating export size');
}

$freeSpaceAfterExport = $freeSpace - $exportSize;
$freeSpaceAfterExport = ($freeSpace - $exportSize) / 1024;
if ($freeSpaceAfterExport < 0) {
throw new NotExportableException('Insufficient storage space available, please free up ' . (int)abs($freeSpaceAfterExport) . ' KiB or more to be able to export your data');
throw new NotExportableException('Insufficient storage space available, please free up ' . (int)abs($freeSpaceAfterExport) . ' MiB or more to be able to export your data without running out of space');
}
}

Expand Down