diff options
| author | Ultrabug <ultrabug@gentoo.org> | 2013-04-05 17:13:13 +0200 |
|---|---|---|
| committer | Ultrabug <ultrabug@gentoo.org> | 2013-04-05 17:13:13 +0200 |
| commit | afa501a026bfbc356605a252d6dcb6cf752a4a75 (patch) | |
| tree | 599d8579a0be900c90be3794c547703a96e03290 | |
| parent | 2bce5e6390a419c67f91f77db41dfc92528ba0c0 (diff) | |
only adjust sleep interval if i3status interval is greater than ours
| -rwxr-xr-x | py3status/__init__.py | 2 |
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 ) ) ) |
