pmrep: allow sub-second sampling intervals
commit8c5b893c9c551809c8cd5992c02d8bba2d6ae9a4
authorMarko Myllynen <myllynen@redhat.com>
Thu, 7 Jul 2016 23:18:58 +0000 (8 09:18 +1000)
committerNathan Scott <nathans@redhat.com>
Thu, 7 Jul 2016 23:18:58 +0000 (8 09:18 +1000)
treef4125b86c7653816a69b5a80bb2a09a521d9de98
parent4f4f7b6c43dba73e59d0541bab4f1b1fd6c585f0
pmrep: allow sub-second sampling intervals

There's no particular reason to forbid interval being less than
one second for pmrep(1), the only reason preventing it were some
internal calculations using int().

Lift the restriction and update the code as needed. Add some QA.

Interval 0 would work as well but I guess it's best to forbid it,
hard to see any realistic use cases for it (and something like
-t 0.1 should suffice just fine in any case).

Note that in some cases the external header's end time now may
differ from what will be the actual end time (interval and
samples still being correct), but I think the approach below
is the most reasonable one, it shouldn't surprise users.
qa/1069
qa/1069.out
src/pmrep/pmrep.py