mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 20:24:35 +03:00
Refactor common OpenZFS sysctl access
Darwin and FreeBSD export zfs kstats through the same APIs, so moving functions into a common file.
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user