Add missing whitespaces

This commit is contained in:
Joshua Ramon Enslin 2021-10-11 15:11:49 +02:00
parent 0abcc8b866
commit a7d961808f
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -37,7 +37,7 @@ final class MDOutputHandler {
*/
private function _human_filesize(int $bytes, int $decimals = 2):string {
$size = ['B','kB','MB','GB','TB','PB','EB','ZB','YB'];
$size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
$factor = floor((strlen((string)$bytes) - 1) / 3);
return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . $size[$factor];