mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 20:24:35 +03:00
added Support for memory meter, and slightly adjusted process monitor logic
This commit is contained in:
@ -178,6 +178,12 @@ double Platform_setCPUValues(Meter* this, int cpu) {
|
||||
|
||||
void Platform_setMemoryValues(Meter* this) {
|
||||
// TODO
|
||||
ProcessList* pl = (ProcessList*) this->pl;
|
||||
|
||||
this->total = pl->totalMem;
|
||||
this->values[0] = pl->usedMem;
|
||||
this->values[1] = pl->buffersMem;
|
||||
this->values[2] = pl->cachedMem;
|
||||
}
|
||||
|
||||
void Platform_setSwapValues(Meter* this) {
|
||||
|
Reference in New Issue
Block a user