Use monotonic time to calculate durations
commite14ecff45ee26203dfef61f9e84fe3555837066b
authorPaul Wise <pabs3@bonedaddy.net>
Thu, 4 May 2017 13:23:22 +0000 (4 21:23 +0800)
committerPaul Wise <pabs3@bonedaddy.net>
Thu, 4 May 2017 13:26:23 +0000 (4 21:26 +0800)
tree36f9dd56bbeed22c8a1fb0844fa6831517460f0c
parentc9acd2932c3b5af9f4a86eaac4b507023642ebc2
Use monotonic time to calculate durations

Prevents incorrect calculations when the system time is set backwards.

Reported-by: Andrei Costin <zveriu@gmail.com>
Fixes: https://bugs.launchpad.net/bugs/1685512
iotop/data.py
iotop/ui.py