mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 07:36:16 +00:00
Fixed: Wrong units (1 KiB = 1024 B, 1 KB = 1000 B, etc...)
--HG-- branch : develop
This commit is contained in:
parent
dd69f64225
commit
36358cef50
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