diff options
author | Nathan Scott <nathans@redhat.com> | 2023-05-02 09:02:22 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2023-05-08 13:06:07 +1000 |
commit | 0bdade1b6cb40c5bd374a93ac0489058a7421bb5 (patch) | |
tree | 0e0225f7dbf6867402c5ed3481a705d01941f42e /linux/HugePageMeter.c | |
parent | e4ebe18b67c366d367231a1123b057c82018cf5b (diff) |
Introduce Machine class for host-specific info (split from ProcessList)
First stage in sanitizing the process list structure so that htop
can support other types of lists too (cgroups, filesystems, ...),
in the not-too-distant future.
This introduces struct Machine for system-wide information while
keeping process-list information in ProcessList (now much less).
Next step is to propogate this separation into each platform, to
match these core changes.
Diffstat (limited to 'linux/HugePageMeter.c')
-rw-r--r-- | linux/HugePageMeter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/HugePageMeter.c b/linux/HugePageMeter.c index 1efde2f2..0e429444 100644 --- a/linux/HugePageMeter.c +++ b/linux/HugePageMeter.c @@ -43,7 +43,7 @@ static void HugePageMeter_updateValues(Meter* this) { memory_t usedTotal = 0; unsigned nextUsed = 0; - const LinuxProcessList* lpl = (const LinuxProcessList*) this->pl; + const LinuxProcessList* lpl = (const LinuxProcessList*) this->host->pl; this->total = lpl->totalHugePageMem; this->values[0] = 0; HugePageMeter_active_labels[0] = " used:"; |