Bug fix in human readable byte convert

This commit is contained in:
Clemens Schwaighofer
2021-05-19 11:01:23 +09:00
parent a46888d101
commit 9d54d6b0d1

View File

@@ -1706,7 +1706,7 @@ class Basic
$bytes_calc *= -1;
}
if ($adjust) {
return sprintf("%.2f%sB", $bytes_calc, $pre);
return sprintf("%.2f%s", $bytes_calc, $pre);
} else {
return round($bytes_calc, 2).$pre;
}