Merge pull request #8090 from zmstone/0531-fix-ensure-binary-from-size-format
fix: ensure bin-string returned from mgmt size format function
This commit is contained in:
commit
cd9811fe15
|
@ -78,7 +78,8 @@ kmg(Byte) when Byte > ?MB ->
|
|||
kmg(Byte) when Byte > ?KB ->
|
||||
kmg(Byte / ?KB, "K");
|
||||
kmg(Byte) ->
|
||||
Byte.
|
||||
integer_to_binary(Byte).
|
||||
|
||||
kmg(F, S) ->
|
||||
iolist_to_binary(io_lib:format("~.2f~ts", [F, S])).
|
||||
|
||||
|
|
Loading…
Reference in New Issue