From 16d8cc7c38664e7470f767705fdb04428170c915 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Tue, 9 Jun 2015 00:08:06 +0100 Subject: Changed MemoryMeter and SwapMeter to use short memory sizes The MemoryMeter and SwapMeter now use the short GNU Coreutils style format to represent memory sizes. --- SwapMeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'SwapMeter.c') diff --git a/SwapMeter.c b/SwapMeter.c index b8bb1814..a19c0300 100644 --- a/SwapMeter.c +++ b/SwapMeter.c @@ -35,7 +35,7 @@ static void SwapMeter_humanNumber(char* buffer, const long int* value) { static void SwapMeter_setValues(Meter* this, char* buffer, int len) { Platform_setSwapValues(this); - snprintf(buffer, len, "%ld/%ldMB", (long int) this->values[0] / MEGABYTE, (long int) this->total / MEGABYTE); + snprintf(buffer, len, "%ld/%ldM", (long int) this->values[0] / MEGABYTE, (long int) this->total / MEGABYTE); } static void SwapMeter_display(Object* cast, RichString* out) { -- cgit v1.2.3