Open connerdassen opened 3 years ago
@kontenbonker
The difference is small。 Although there are differences, I think you can ignore difference。 Do you think?
Actually, since Mb is megabit, the difference is quite a lot. On my server with 64GB ram, the return value of the function is 65365,1484375, which is the amount of MiB. If it were actually in Mb like the name suggests, the amount should be 574957,9260666838. That's about 8.8 times more.
@kontenbonker Can you provide the Mb algorithm, commit a Pull requests?
The function from the title is called .totalMemMb, which suggests a return value in megabit. I found the actual return value to be in MiB, (mebibytes) (Mb = megabit, MB = megabyte, MiB = mebibyte, there's a difference!)
Therefore I think the function name should be changed to .totalMemMib.