From 31b71b67011fa52f091df6fe536a11d6d0bfb256 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 25 Jul 2016 18:25:28 +0200 Subject: Imported Upstream version 2.0.2 --- SwapMeter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'SwapMeter.c') diff --git a/SwapMeter.c b/SwapMeter.c index 895ca0b..1406d6f 100644 --- a/SwapMeter.c +++ b/SwapMeter.c @@ -24,7 +24,7 @@ int SwapMeter_attributes[] = { SWAP }; -static void SwapMeter_setValues(Meter* this, char* buffer, int size) { +static void SwapMeter_updateValues(Meter* this, char* buffer, int size) { int written; Platform_setSwapValues(this); @@ -54,8 +54,9 @@ MeterClass SwapMeter_class = { .delete = Meter_delete, .display = SwapMeter_display, }, - .setValues = SwapMeter_setValues, + .updateValues = SwapMeter_updateValues, .defaultMode = BAR_METERMODE, + .maxItems = 1, .total = 100.0, .attributes = SwapMeter_attributes, .name = "Swap", -- cgit v1.2.3