projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
528ccc3
)
--debug
author
realraum
<realraum@realraum.at>
Sat, 8 May 2010 00:12:57 +0000
(
00:12
+0000)
committer
realraum
<realraum@realraum.at>
Sat, 8 May 2010 00:12:57 +0000
(
00:12
+0000)
switch-power.py
patch
|
blob
|
history
diff --git
a/switch-power.py
b/switch-power.py
index
6b8b9f5
..
a9ebc29
100755
(executable)
--- 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()