summaryrefslogtreecommitdiffstats
path: root/MemorySwapMeter.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2023-05-02 09:02:22 +1000
committerNathan Scott <nathans@redhat.com>2023-05-08 13:06:07 +1000
commit0bdade1b6cb40c5bd374a93ac0489058a7421bb5 (patch)
tree0e0225f7dbf6867402c5ed3481a705d01941f42e /MemorySwapMeter.c
parente4ebe18b67c366d367231a1123b057c82018cf5b (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 'MemorySwapMeter.c')
-rw-r--r--MemorySwapMeter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MemorySwapMeter.c b/MemorySwapMeter.c
index 46b2a6b7..814841f7 100644
--- a/MemorySwapMeter.c
+++ b/MemorySwapMeter.c
@@ -53,9 +53,9 @@ static void MemorySwapMeter_init(Meter* this) {
}
if (!data->memoryMeter)
- data->memoryMeter = Meter_new(this->pl, 0, (const MeterClass*) Class(MemoryMeter));
+ data->memoryMeter = Meter_new(this->host, 0, (const MeterClass*) Class(MemoryMeter));
if (!data->swapMeter)
- data->swapMeter = Meter_new(this->pl, 0, (const MeterClass*) Class(SwapMeter));
+ data->swapMeter = Meter_new(this->host, 0, (const MeterClass*) Class(SwapMeter));
if (Meter_initFn(data->memoryMeter))
Meter_init(data->memoryMeter);

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