]> granicus.if.org Git - procps-ng/commit
top: fix potential 'nan', should a system have no Swap
authorJim Warner <james.warner@comcast.net>
Fri, 4 Jul 2014 05:00:00 +0000 (00:00 -0500)
committerJaromir Capik <jcapik@redhat.com>
Mon, 7 Jul 2014 16:43:52 +0000 (18:43 +0200)
commit6cd8691720a470c20b5aace7186a7f1984d82930
tree5acf7b3a83fc668b20bd9e9bcbdd934ea26dc508
parent1dd0c4d07f870351dedfbee83da0a140f76292b2
top: fix potential 'nan', should a system have no Swap

Gosh, just because most of us might run with some swap
file allocated, not every system might. I only wish my
testing methodology was as sophisticated as Jaromir's.

Reference(s):
http://www.freelists.org/post/procps/latest-top-enhancements,7

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c