diff options
author | Daniel Lange <DLange@git.local> | 2021-10-15 09:03:05 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-10-15 09:03:05 +0200 |
commit | c733b3f6130c70e100c21c4f77d8fd48db80622c (patch) | |
tree | fac3278283232938169f928fd3d3ab641d5c6c8e /MemoryMeter.c | |
parent | 4582ae87a0a0675d0756b93dcda052c533cd2c96 (diff) | |
parent | 30ce3b4c264c51c98f280e88e23792ff7deb2317 (diff) | |
download | debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.tar.gz debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.tar.bz2 debian_htop-c733b3f6130c70e100c21c4f77d8fd48db80622c.zip |
Update upstream source from tag 'upstream/3.1.1'
Update to upstream version '3.1.1'
with Debian dir c4b5e8f6455cfd05bffdaed787e2ebf5c7d9a632
Diffstat (limited to 'MemoryMeter.c')
-rw-r--r-- | MemoryMeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MemoryMeter.c b/MemoryMeter.c index 75ad7e8..89e242c 100644 --- a/MemoryMeter.c +++ b/MemoryMeter.c @@ -1,7 +1,7 @@ /* htop - MemoryMeter.c (C) 2004-2011 Hisham H. Muhammad -Released under the GNU GPLv2, see the COPYING file +Released under the GNU GPLv2+, see the COPYING file in the source distribution for its full text. */ @@ -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, '/'); |