summaryrefslogtreecommitdiffstats
path: root/SwapMeter.c
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2015-06-09 00:08:06 +0100
committerTomasz Kramkowski <tk@the-tk.com>2015-06-09 00:08:06 +0100
commit16d8cc7c38664e7470f767705fdb04428170c915 (patch)
tree6023daba8f7941713e9703846be1332014617e0e /SwapMeter.c
parentabe165fe5c771b5c31ae39cae6b0b0f609316bc6 (diff)
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.
Diffstat (limited to 'SwapMeter.c')
-rw-r--r--SwapMeter.c2
1 files changed, 1 insertions, 1 deletions
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) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy