util: add space when formatting attachment file sizes

This commit is contained in:
mappu 2020-05-04 18:06:49 +12:00
parent 146f08dacd
commit aa96521ca7

View File

@ -96,7 +96,7 @@ function fbytes($size, $suffixes='B|KiB|MiB|GiB|TiB') {
array_shift($sxlist); array_shift($sxlist);
$size /= 1024; $size /= 1024;
} }
return number_format($size, 2).array_shift($sxlist); return number_format($size, 2).' '.array_shift($sxlist);
} }
function str_ext($sz) { function str_ext($sz) {