summaryrefslogtreecommitdiffstats
path: root/freebsd/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 /freebsd/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 'freebsd/Platform.c')
-rw-r--r--freebsd/Platform.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/freebsd/Platform.c b/freebsd/Platform.c
index d8d2ed06..05c0e922 100644
--- a/freebsd/Platform.c
+++ b/freebsd/Platform.c
@@ -202,18 +202,18 @@ void Platform_setSwapValues(Meter* this) {
void Platform_setZfsArcValues(Meter* this) {
FreeBSDProcessList* fpl = (FreeBSDProcessList*) this->pl;
- this->total = fpl->zfsArcMax;
- this->values[0] = fpl->zfsArcMFU;
- this->values[1] = fpl->zfsArcMRU;
- this->values[2] = fpl->zfsArcAnon;
- this->values[3] = fpl->zfsArcHeader;
- this->values[4] = fpl->zfsArcOther;
+ this->total = fpl->zfs.max;
+ this->values[0] = fpl->zfs.MFU;
+ this->values[1] = fpl->zfs.MRU;
+ this->values[2] = fpl->zfs.anon;
+ this->values[3] = fpl->zfs.header;
+ this->values[4] = fpl->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] = fpl->memZfsArc;
+ this->values[5] = fpl->zfs.size;
}
void Platform_setTasksValues(Meter* this) {

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