projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2adf4b7
)
better Panic ?
author
realraum
<realraum@realraum.at>
Wed, 28 Jul 2010 01:21:33 +0000
(
01:21
+0000)
committer
realraum
<realraum@realraum.at>
Wed, 28 Jul 2010 01:21:33 +0000
(
01:21
+0000)
switch-power.py
patch
|
blob
|
history
diff --git
a/switch-power.py
b/switch-power.py
index
9880976
..
7d108fd
100755
(executable)
--- a/
switch-power.py
+++ b/
switch-power.py
@@
-211,7
+211,9
@@
def eventPanic():
logging.info("eventPanic(): switching around: "+uwscfg.slug_ids_panic)
lst1 = uwscfg.slug_ids_panic.split(" ")
lst2 = map(lambda e:[e,True], lst1)
- for delay in map(lambda e: (40-e)/133.0,range(0,20)):
+ for id in lst1:
+ switchPower(id,True)
+ for delay in map(lambda e: (40-e)/33.0,range(0,20)):
e = random.choice(lst2)
e[1]=not e[1]
switchPower(e[0],e[1])