From eea5dd81b432f293bb7f229746fc2da101fc53bc Mon Sep 17 00:00:00 2001 From: Zhong Jianxin Date: Fri, 3 Sep 2021 23:58:41 +0800 Subject: [PATCH] Fix update_freq --- src/bar_item.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bar_item.c b/src/bar_item.c index d46006f..cc250e3 100644 --- a/src/bar_item.c +++ b/src/bar_item.c @@ -63,7 +63,7 @@ void bar_item_script_update(struct bar_item* bar_item, bool forced) { if (!bar_item->scripting || (bar_item->update_frequency == 0 && !forced)) return; if (strcmp(bar_item->script, "") != 0) { bar_item->counter++; - if (bar_item->update_frequency < bar_item->counter || forced) { + if (bar_item->update_frequency <= bar_item->counter || forced) { bar_item->counter = 0; fork_exec(bar_item->script, NULL); }