Fix reading time computation

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>