pmrep: fix infinity handling
commitddb6582d5568adf68e7b1399defb4b354d834796
authorMarko Myllynen <myllynen@redhat.com>
Fri, 20 May 2016 01:51:54 +0000 (20 11:51 +1000)
committerNathan Scott <nathans@redhat.com>
Fri, 20 May 2016 01:51:54 +0000 (20 11:51 +1000)
tree5d29c18bfa98108f27e4d4481500555d2ae559b2
parent30d683f3f6a4bdb776fdf3fa10b22444c7815410
pmrep: fix infinity handling

pmrep(1) did not handle infinite values properly like other clients,
for example the expression: "tst = proc.memory.vmrss / 0" generates
exception: OverflowError: cannot convert float infinity to integer

Handle it better, and similar example to above as a regression test.
qa/1069
qa/1069.out
src/pmrep/pmrep.py