From afa501a026bfbc356605a252d6dcb6cf752a4a75 Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Fri, 5 Apr 2013 17:13:13 +0200 Subject: only adjust sleep interval if i3status interval is greater than ours --- py3status/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ) ) -- cgit v1.3