From b2d2d960f57d1520bab492e7b90eb0012d4fdcba Mon Sep 17 00:00:00 2001 From: realraum Date: Sat, 8 May 2010 00:12:57 +0000 Subject: [PATCH] --debug --- switch-power.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/switch-power.py b/switch-power.py index 6b8b9f5..a9ebc29 100755 --- a/switch-power.py +++ b/switch-power.py @@ -15,6 +15,7 @@ import subprocess import types import ConfigParser import datetime +import random import traceback logger = logging.getLogger() @@ -196,7 +197,7 @@ def eventPanic(): switchPower(e[0],e[1]) time.sleep(delay) random.shuffle(lst1) - for rep in lst1: + for id in lst1: switchPower(id,False) time.sleep(1.2) eventPresent() -- 1.7.10.4