added Support for memory meter, and slightly adjusted process monitor logic

This commit is contained in:
Martin "eto" Misuth
2015-12-13 04:11:35 +01:00
parent 80f594f314
commit 9d55c56f26
2 changed files with 137 additions and 31 deletions

View File

@ -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) {