summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-10-12 17:47:03 +1100
committerNathan Scott <nathans@redhat.com>2021-10-12 17:47:03 +1100
commitd1c833fe951b059c8dda24a055ca7d1c291f10ff (patch)
tree1b697091b3401c1abe2d8d01581cf6bb61ed37f2
parent04871a2d04361517f2e539810cb11e9e9898f0d0 (diff)
parent868b0b3574cb721c07570a3aea8a1d726ac3e715 (diff)
Merge branch 'revert-used-memory'
-rw-r--r--MemoryMeter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MemoryMeter.c b/MemoryMeter.c
index 4c6672d8..89e242ca 100644
--- a/MemoryMeter.c
+++ b/MemoryMeter.c
@@ -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, '/');

© 2014-2021 Faster IT GmbH | imprint | privacy policy