mirror of https://github.com/xzeldon/htop.git
Redo the memory values based on the other BSD implementations.
This commit is contained in:
parent
5fe9bcb21c
commit
686309e34c
|
@ -240,7 +240,9 @@ void Platform_setMemoryValues(Meter* this) {
|
||||||
this->total = pl->totalMem;
|
this->total = pl->totalMem;
|
||||||
this->values[0] = usedMem;
|
this->values[0] = usedMem;
|
||||||
this->values[1] = buffersMem;
|
this->values[1] = buffersMem;
|
||||||
this->values[2] = cachedMem;
|
// this->values[2] = "shared memory, like tmpfs and shm"
|
||||||
|
this->values[3] = cachedMem;
|
||||||
|
// this->values[4] = "available memory"
|
||||||
}
|
}
|
||||||
|
|
||||||
void Platform_setSwapValues(Meter* this) {
|
void Platform_setSwapValues(Meter* this) {
|
||||||
|
|
Loading…
Reference in New Issue