mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +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:
@ -218,18 +218,18 @@ void Platform_setSwapValues(Meter* this) {
|
||||
void Platform_setZfsArcValues(Meter* this) {
|
||||
LinuxProcessList* lpl = (LinuxProcessList*) this->pl;
|
||||
|
||||
this->total = lpl->zfsArcMax;
|
||||
this->values[0] = lpl->zfsArcMFU;
|
||||
this->values[1] = lpl->zfsArcMRU;
|
||||
this->values[2] = lpl->zfsArcAnon;
|
||||
this->values[3] = lpl->zfsArcHeader;
|
||||
this->values[4] = lpl->zfsArcOther;
|
||||
this->total = lpl->zfs.max;
|
||||
this->values[0] = lpl->zfs.MFU;
|
||||
this->values[1] = lpl->zfs.MRU;
|
||||
this->values[2] = lpl->zfs.anon;
|
||||
this->values[3] = lpl->zfs.header;
|
||||
this->values[4] = lpl->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] = lpl->memZfsArc;
|
||||
this->values[5] = lpl->zfs.size;
|
||||
}
|
||||
|
||||
char* Platform_getProcessEnv(pid_t pid) {
|
||||
|
Reference in New Issue
Block a user