aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/lua/force_actions.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua
index 69cc63a66..6e9ef9200 100644
--- a/src/plugins/lua/force_actions.lua
+++ b/src/plugins/lua/force_actions.lua
@@ -102,7 +102,7 @@ local function gen_cb(params)
local ret = e:process(task)
lua_util.debugm(N, task, "expression %s returned %s", params.expr, ret)
- if (not params.limit) or ret > params.limit then
+ if (not params.limit and ret > 0) or ret > params.limit then
if params.subject then
task:set_metric_subject(params.subject)
end