Update byteStringFormat with si units and bitwise mask

The old method name byteStringFormat is currently deprecated and it is
recommended to move to the new humanReadableByteFormat method.
Difference is that the new version uses a bitfield settings mask
BYTE_FORMAT_NOSPACE, BYTE_FORMAT_ADJUST, BYTE_FORMAT_SI
This commit is contained in:
Clemens Schwaighofer committed 2019-12-06 15:29:06 +09:00
1 parent beedf629e5
commit b6f6eeac9b
4 files changed
+152 -13

No files matched your search

+1 -1
View File
@@ -364,7 +364,7 @@ class Backend extends \CoreLibs\DB\IO
public function adbByteStringFormat($number): string
{
trigger_error('Method '.__METHOD__.' is deprecated', E_USER_DEPRECATED);
return $this->byteStringFormat($number);
return $this->humanReadableByteFormat($number);
}
/**