summaryrefslogtreecommitdiffstats
path: root/py3status
diff options
context:
space:
mode:
authorUltrabug <ultrabug@gentoo.org>2013-04-05 17:13:13 +0200
committerUltrabug <ultrabug@gentoo.org>2013-04-05 17:13:13 +0200
commitafa501a026bfbc356605a252d6dcb6cf752a4a75 (patch)
tree599d8579a0be900c90be3794c547703a96e03290 /py3status
parent2bce5e6390a419c67f91f77db41dfc92528ba0c0 (diff)
only adjust sleep interval if i3status interval is greater than ours
Diffstat (limited to 'py3status')
-rwxr-xr-xpy3status/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py
index 9410ed5..3e794e9 100755
--- a/py3status/__init__.py
+++ b/py3status/__init__.py
@@ -307,7 +307,7 @@ def main():
# i3status first output lines should be processed asap as only
# the following lines will be processed by py3status
if LINE.startswith(',['):
- if not FORCED:
+ if not FORCED and I3STATUS_CONFIG['interval'] > INTERVAL:
# add a calculated sleep honoring py3status refresh
# time of the bar every INTERVAL seconds
sleep( INTERVAL - float( '{:.2}'.format( time()-TS ) ) )