Commit c4eba84
correct the units shown for memory data
The units returned by `to_byte/1` are kilobytes (KB), megabytes (MB) and
gigabytes (GB) but the actual numeric value are for kibibyte (KiB), mebibyte(MiB)
and gibibyte(GiB). This is because the division is by 1024.
I found this problem when I was comparing the value agaist the output of
rebar:info and didn't match.
I did a similar patch a few years ago on OTP's observer [1].
[1] erlang/otp#60631 parent 12ef053 commit c4eba84
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
0 commit comments