summaryrefslogtreecommitdiffstats
path: root/SwapMeter.h
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2023-01-08 21:38:57 +0100
committerBenBE <BenBE@geshi.org>2023-01-08 22:03:37 +0100
commitd97cf58261d340922c85bee9b9e1670b4f88eafc (patch)
treedaa6eb00a7c84e584255de6421e872179f4e305d /SwapMeter.h
parent650cf0f13bf667270d0a6a4612437af264667585 (diff)
Improve code readability by creating constants for SWAP memory values
Diffstat (limited to 'SwapMeter.h')
-rw-r--r--SwapMeter.h5
1 files changed, 5 insertions, 0 deletions
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;

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