Bug on resource task interval setting fixed
authorlbessard
Fri, 25 Apr 2008 10:53:18 +0200
changeset 209 babfecf81c33
parent 208 c70aefcadf66
child 210 17ce08b81775
Bug on resource task interval setting fixed
PLCControler.py
--- a/PLCControler.py	Tue Apr 22 16:16:00 2008 +0200
+++ b/PLCControler.py	Fri Apr 25 10:53:18 2008 +0200
@@ -2385,7 +2385,7 @@
                             values.append(int(value))
                         else:
                             values.append(0)
-                    if values[-1] is not None:
+                    if result[-1] is not None:
                         values.append(int(float(result[-1]) * 1000))
                     new_task.setinterval(time(*values))
                 new_task.setpriority(int(task["Priority"]))