diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-01-08 21:38:57 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-01-08 22:03:37 +0100 |
commit | d97cf58261d340922c85bee9b9e1670b4f88eafc (patch) | |
tree | daa6eb00a7c84e584255de6421e872179f4e305d /darwin | |
parent | 650cf0f13bf667270d0a6a4612437af264667585 (diff) |
Improve code readability by creating constants for SWAP memory values
Diffstat (limited to 'darwin')
-rw-r--r-- | darwin/Platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c index e9d6caab..38b1a8af 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -278,7 +278,7 @@ void Platform_setSwapValues(Meter* mtr) { sysctl(mib, 2, &swapused, &swlen, NULL, 0); mtr->total = swapused.xsu_total / 1024; - mtr->values[0] = swapused.xsu_used / 1024; + mtr->values[SWAP_METER_USED] = swapused.xsu_used / 1024; } void Platform_setZfsArcValues(Meter* this) { |