summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-23 23:59:09 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-23 23:59:09 +0100
commitf5935677e12e4b1802b3bd239c242722c9449bc2 (patch)
treefbef311f3c5d593d224c5c1e4a49d50f6cafa827 /examples
parentadd update todo (diff)
downloadblueshift-f5935677e12e4b1802b3bd239c242722c9449bc2.tar.gz
blueshift-f5935677e12e4b1802b3bd239c242722c9449bc2.tar.bz2
blueshift-f5935677e12e4b1802b3bd239c242722c9449bc2.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/sleepmode4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sleepmode b/examples/sleepmode
index a5b3023..b589954 100644
--- a/examples/sleepmode
+++ b/examples/sleepmode
@@ -79,7 +79,7 @@ def periodically(year, month, day, hour, minute, second, weekday, fade):
(**) See https://en.wikipedia.org/wiki/Leap_second
'''
purity = 0 if fade is None else 1 - abs(fade)
- for m in max(1, len(monitors)):
+ for m in range(max(1, len(monitors))):
# Remove settings from last run.
start_over()
@@ -110,7 +110,7 @@ def reset():
'''
Invoked to reset the displays
'''
- for m in max(1, len(monitors)):
+ for m in range(max(1, len(monitors))):
# Remove settings from last run.
start_over()