From 7fd93693fd7dd2cc1a231a217e1550f373de33e5 Mon Sep 17 00:00:00 2001 From: Joachim Seemer Date: Sun, 5 Sep 2010 08:58:09 +0000 Subject: [PATCH] Use binary prefixes (KiB, MiB, GiB...). Fixes #6551. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38533 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskusage/Common.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/diskusage/Common.cpp b/src/apps/diskusage/Common.cpp index c3434f9599..ccdc14efbc 100644 --- a/src/apps/diskusage/Common.cpp +++ b/src/apps/diskusage/Common.cpp @@ -131,10 +131,10 @@ size_to_string(off_t byteCount, char* name) float divisor; const char* format; } scale[] = { - { 0x100000, 1024.0, "%.2f KB" }, - { 0x40000000, 1048576.0, "%.2f MB" }, - { 0x10000000000ull, 1073741824.0, "%.2f GB" }, - { 0x4000000000000ull, 1.09951162778e+12, "%.2f TB" } + { 0x100000, 1024.0, "%.2f KiB" }, + { 0x40000000, 1048576.0, "%.2f MiB" }, + { 0x10000000000ull, 1073741824.0, "%.2f GiB" }, + { 0x4000000000000ull, 1.09951162778e+12, "%.2f TiB" } }; if (byteCount < 1024) {