From 5f67a8a12b735e1f9e91892c20d133eca2338ce9 Mon Sep 17 00:00:00 2001 From: Vlad Glagolev Date: Tue, 1 Dec 2020 07:35:48 -0800 Subject: [PATCH] Respect interval default for tail = true (#2240) --- src/modules/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/script.cpp b/src/modules/script.cpp index 0fc51fbf..8ce76cce 100644 --- a/src/modules/script.cpp +++ b/src/modules/script.cpp @@ -84,7 +84,7 @@ namespace modules { // Load configuration values m_exec = m_conf.get(name(), "exec", m_exec); m_exec_if = m_conf.get(name(), "exec-if", m_exec_if); - m_interval = m_conf.get(name(), "interval", 5s); + m_interval = m_conf.get(name(), "interval", m_tail ? 0s : 5s); // Load configured click handlers m_actions[mousebtn::LEFT] = m_conf.get(name(), "click-left", ""s);