Ensure consistent reporting of MemoryMeter used memory

Resolves #821
This commit is contained in:
Nathan Scott 2021-10-07 18:05:06 +11:00
parent b7248f6cb8
commit 868b0b3574
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ static void MemoryMeter_updateValues(Meter* this) {
/* Do not print available memory in bar mode */
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_APPEND_CHR(buffer, size, '/');