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:
1 parent
beedf629e5
commit
b6f6eeac9b
4 files changed
+152
-13
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user