X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=switch-power.py;h=c8707603d886558f0d2354ca7d5059d7c286714e;hb=a8262dc8575deeac26e4d19a33ee12841d2e9a78;hp=5a33f19fcd58ea9f87c592567e3af51fb5cca112;hpb=85b29d83b79b660075a7aa02efb3f696c25e11f3;p=svn42.git diff --git a/switch-power.py b/switch-power.py index 5a33f19..c870760 100755 --- a/switch-power.py +++ b/switch-power.py @@ -230,10 +230,10 @@ def eventPanic(): lst2 = map(lambda e:[e,False], lst1) for id in lst1: switchPower(id,False) - for times in range(1,6) + for times in range(1,6): delay = random.choice([0.3,1.4,0.9,0.5,0.3,1.4,0.9,0.5,2.2]) time.sleep(delay) - for e in lst1: + for e in lst2: e[1]=not e[1] switchPower(e[0],e[1]) for id in lst1: