global-functions: $HumanReadableNum: indicate binary base...

... and update scripts to match the change.
This commit is contained in:
Christian Hesse 2024-04-07 21:11:03 +02:00
parent 36cf4d028b
commit 3015743b19
4 changed files with 11 additions and 7 deletions

View file

@ -140,7 +140,7 @@
:return \
[ $IfThenElse ([ :typeof $File ] = "array") \
($Name . ":\n" . [ $FormatLine " name" ($File->"name") ] . "\n" . \
[ $FormatLine " size" ([ $HumanReadableNum ($File->"size") 1024 ] . "iB") ]) \
[ $FormatLine " size" ([ $HumanReadableNum ($File->"size") 1024 ] . "B") ]) \
[ $FormatLine $Name $File ] ];
}