mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Fixed: Wrong units (1 KiB = 1024 B, 1 KB = 1000 B, etc...)
This commit is contained in:
parent
68f4628282
commit
791d73500e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue