From 4165bf6289d952e644d9cbd1d790ae8fb4defc92 Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Fri, 11 May 2012 18:50:56 +0200 Subject: [PATCH] CC-3812 : Recorder needs to sleep using microseconds --- python_apps/pypo/recorder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_apps/pypo/recorder.py b/python_apps/pypo/recorder.py index 19f91621e..4096ed767 100644 --- a/python_apps/pypo/recorder.py +++ b/python_apps/pypo/recorder.py @@ -213,7 +213,8 @@ class Recorder(Thread): next_show = getDateTimeObj(start_time) delta = next_show - tnow - out = delta.seconds + s = '%s.%s' % (delta.seconds, delta.microseconds) + out = float(s) if out < 5: self.logger.debug("Shows %s", self.shows_to_record)