Jim Warner 9c0e8e9429 library: guard against 'inf/nan' for 'cpu utilization'
When preparing the ps program for a %CUU field, it was
revealed the PIDS_UTILIZATION item may sometimes yield
a result of 'nan' or 'inf' for that ps program itself.

Apparently, it was caused by the short lived nature of
such a one-shot program. And, while this anomaly could
be handled in ps, the solution belongs in the library.

So, I reworked an item's algorithm to avoid this oops.

Signed-off-by: Jim Warner <james.warner@comcast.net>
2022-03-06 14:52:34 +11:00
..
2021-02-20 22:30:31 +11:00
2021-02-20 22:30:31 +11:00
2020-07-05 21:18:36 +10:00
2021-01-21 17:37:48 +11:00
2021-01-21 17:37:48 +11:00
2021-11-02 17:23:37 +11:00
2021-01-21 17:37:48 +11:00