Fixes/backup issues (#51)

* Fix: Error related to undefined Backup::size()

* Fix: Disable signals if PCNTL isn't loaded to avoid fatal error (Fixes SIGINT is not defined on environments that are missing the PCNTL library)
This commit is contained in:
Darko Gjorgjijoski
2024-03-27 01:15:49 +01:00
committed by GitHub
parent 8788f3d504
commit 9bb4963e8a
3 changed files with 5 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ class BackupsController extends ApiController
return [
'path' => $backup->path(),
'created_at' => $backup->date()->format('Y-m-d H:i:s'),
'size' => Format::humanReadableSize($backup->size()),
'size' => Format::humanReadableSize($backup->sizeInBytes()),
];
})
->toArray();