From cf4a6f90a56f3dfd98a116733c213eb4b0321161 Mon Sep 17 00:00:00 2001 From: Griatch Date: Fri, 14 Feb 2014 01:41:59 +0100 Subject: [PATCH] Added rounding of command output --- src/scripts/scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/scripts.py b/src/scripts/scripts.py index 4c8fffcfdc..8a758f774a 100644 --- a/src/scripts/scripts.py +++ b/src/scripts/scripts.py @@ -203,7 +203,7 @@ class ScriptBase(TypeClass): task = self.ndb._task if task: try: - return int(task.next_call_time()) + return int(round(task.next_call_time())) except TypeError: pass return None