Fixed: Wrong units (1 KiB = 1024 B, 1 KB = 1000 B, etc...)

This commit is contained in:
kervala 2015-12-23 15:11:26 +01:00
parent 4afdfcdde3
commit 47a43a4920

View file

@ -362,7 +362,7 @@ string bytesToHumanReadable (const std::string &bytes)
string bytesToHumanReadable (uint64 bytes) string bytesToHumanReadable (uint64 bytes)
{ {
static const char *divTable[]= { "B", "KB", "MB", "GB", "TB" }; static const char *divTable[]= { "B", "KiB", "MiB", "GiB", "TiB" };
uint div = 0; uint div = 0;
uint64 res = bytes; uint64 res = bytes;
uint64 newres = res; uint64 newres = res;