From 47a43a49208f415e7bfc1400728639e22918b404 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 23 Dec 2015 15:11:26 +0100 Subject: [PATCH] Fixed: Wrong units (1 KiB = 1024 B, 1 KB = 1000 B, etc...) --- code/nel/src/misc/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/src/misc/common.cpp b/code/nel/src/misc/common.cpp index 4c0db690e..8eca1d566 100644 --- a/code/nel/src/misc/common.cpp +++ b/code/nel/src/misc/common.cpp @@ -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;