summaryrefslogtreecommitdiffstats
path: root/src/__main__.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-22 13:10:57 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-22 13:10:57 +0100
commit93356b66ac8fdd9a18889ebab5a90ddefa6976e1 (patch)
treeb4fc784be3cef278ad5f35007ba1e02ee6ef8306 /src/__main__.py
parentsupport C-c in one shot mode (diff)
downloadblueshift-93356b66ac8fdd9a18889ebab5a90ddefa6976e1.tar.gz
blueshift-93356b66ac8fdd9a18889ebab5a90ddefa6976e1.tar.bz2
blueshift-93356b66ac8fdd9a18889ebab5a90ddefa6976e1.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-xsrc/__main__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/__main__.py b/src/__main__.py
index 27c025e..f189e16 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -417,9 +417,9 @@ if (config_file is None) and any([doreset, location] + settings):
signal.signal(signal.SIGTERM, signal_SIGTERM)
trans = 0
while running:
- apply(alpha(), trans if doreset else 1 - trans)
- trans += 0.05
try:
+ apply(alpha(), trans if doreset else 1 - trans)
+ trans += 0.05
time.sleep(0.1)
except KeyboardInterrupt:
signal_SIGTERM(0, None)