From d97cf58261d340922c85bee9b9e1670b4f88eafc Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 8 Jan 2023 21:38:57 +0100 Subject: Improve code readability by creating constants for SWAP memory values --- SwapMeter.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'SwapMeter.h') diff --git a/SwapMeter.h b/SwapMeter.h index 485485a1..b71e83fe 100644 --- a/SwapMeter.h +++ b/SwapMeter.h @@ -9,6 +9,11 @@ in the source distribution for its full text. #include "Meter.h" +typedef enum { + SWAP_METER_USED = 0, + SWAP_METER_CACHE = 1, + SWAP_METER_ITEMCOUNT = 2, // number of entries in this enum +} SwapMeterValues; extern const MeterClass SwapMeter_class; -- cgit v1.2.3