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 68f4628282
commit 791d73500e

View file

@ -362,7 +362,7 @@ string bytesToHumanReadable (const std::string &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;
uint64 res = bytes;
uint64 newres = res;