summaryrefslogtreecommitdiffstats
path: root/darwin/Platform.c
diff options
context:
space:
mode:
authorRoss Williams <ross@ross-williams.net>2019-07-07 23:27:00 +0000
committerRoss Williams <ross@ross-williams.net>2019-07-07 23:10:54 -0400
commita88d2e313df7f5f2b781d5b14ffe0e7710018c10 (patch)
tree623e2c81c9335e37653c870f64190b2ed22cc365 /darwin/Platform.c
parentfc8e9a2d3e25e35c0f9903baa345b1744b12b6cb (diff)
Refactor common OpenZFS sysctl access
Darwin and FreeBSD export zfs kstats through the same APIs, so moving functions into a common file.
Diffstat (limited to 'darwin/Platform.c')
-rw-r--r--darwin/Platform.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c
index 52d60a9b..8fbb9c93 100644
--- a/darwin/Platform.c
+++ b/darwin/Platform.c
@@ -246,18 +246,18 @@ void Platform_setSwapValues(Meter* mtr) {
void Platform_setZfsArcValues(Meter* this) {
DarwinProcessList* dpl = (DarwinProcessList*) this->pl;
- this->total = dpl->zfsArcMax;
- this->values[0] = dpl->zfsArcMFU;
- this->values[1] = dpl->zfsArcMRU;
- this->values[2] = dpl->zfsArcAnon;
- this->values[3] = dpl->zfsArcHeader;
- this->values[4] = dpl->zfsArcOther;
+ this->total = dpl->zfs.max;
+ this->values[0] = dpl->zfs.MFU;
+ this->values[1] = dpl->zfs.MRU;
+ this->values[2] = dpl->zfs.anon;
+ this->values[3] = dpl->zfs.header;
+ this->values[4] = dpl->zfs.other;
// "Hide" the last value so it can
// only be accessed by index and is not
// displayed by the Bar or Graph style
Meter_setItems(this, 5);
- this->values[5] = dpl->zfsArcSize;
+ this->values[5] = dpl->zfs.size;
}
char* Platform_getProcessEnv(pid_t pid) {

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