Open smoser opened 5 years ago
Yes, this is the way it works. I think we can fix this and accept e.g. KB as "human size" (1000) and KiB as "computer size" (1024), defaulting to "human size" for "FromHumanSize" and to "computer size" for "RAMInBytes".
Problem is, this will make things slightly incompatible with the current behavior.
One might expect that FromHumanSize("1MiB") would either
Currently it does not raise error and returns units.MB (1000 1000 1000)