From 1cac1bebcb957e4f7edea51b1de1976a4ec37bc6 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Sat, 13 Jul 2013 13:32:55 -0400 Subject: [PATCH] ActivityMonitor: use new units KiB/MiB for display (#5378) --- src/apps/activitymonitor/DataSource.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/activitymonitor/DataSource.cpp b/src/apps/activitymonitor/DataSource.cpp index 43ea62d233..b7b15f0d24 100644 --- a/src/apps/activitymonitor/DataSource.cpp +++ b/src/apps/activitymonitor/DataSource.cpp @@ -290,7 +290,7 @@ void MemoryDataSource::Print(BString& text, int64 value) const { char buffer[32]; - snprintf(buffer, sizeof(buffer), B_TRANSLATE("%.1f MB"), value / 1048576.0); + snprintf(buffer, sizeof(buffer), B_TRANSLATE("%.1f MiB"), value / 1048576.0); text = buffer; } @@ -299,7 +299,7 @@ MemoryDataSource::Print(BString& text, int64 value) const const char* MemoryDataSource::Unit() const { - return B_TRANSLATE("MB"); + return B_TRANSLATE("MiB"); } @@ -1231,7 +1231,7 @@ void NetworkUsageDataSource::Print(BString& text, int64 value) const { char buffer[32]; - snprintf(buffer, sizeof(buffer), B_TRANSLATE("%.1f KB/s"), value / 1024.0); + snprintf(buffer, sizeof(buffer), B_TRANSLATE("%.1f KiB/s"), value / 1024.0); text = buffer; }