mirror of https://github.com/xzeldon/htop.git
Merge branch 'revert-used-memory'
This commit is contained in:
commit
d1c833fe95
|
@ -36,7 +36,7 @@ static void MemoryMeter_updateValues(Meter* this) {
|
||||||
/* Do not print available memory in bar mode */
|
/* Do not print available memory in bar mode */
|
||||||
this->curItems = 4;
|
this->curItems = 4;
|
||||||
|
|
||||||
written = Meter_humanUnit(buffer, isnan(this->values[4]) ? this->values[0] : this->total - this->values[4], size);
|
written = Meter_humanUnit(buffer, this->values[0], size);
|
||||||
METER_BUFFER_CHECK(buffer, size, written);
|
METER_BUFFER_CHECK(buffer, size, written);
|
||||||
|
|
||||||
METER_BUFFER_APPEND_CHR(buffer, size, '/');
|
METER_BUFFER_APPEND_CHR(buffer, size, '/');
|
||||||
|
|
Loading…
Reference in New Issue