[PATCH usteer 2/5] policy: count load kicks once
Patrick Hein
bagbag98 at googlemail.com
Sun Oct 25 10:38:33 PDT 2026
usteer_ubus_kick_client() increments kick_count, but the load kick
increments it as well, so load kicks are counted twice.
Remove the extra increment. Like the signal kick event, the load kick
event now reports the count before the kick.
Fixes: 3cc0f456f04d ("policy: count kick total")
Signed-off-by: Patrick Hein <bagbag98 at googlemail.com>
---
policy.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/policy.c b/policy.c
index 16c4363..d7906e4 100644
--- a/policy.c
+++ b/policy.c
@@ -601,8 +601,6 @@ usteer_local_node_load_kick(struct usteer_local_node *ln)
if (kick2)
kick1 = kick2;
- kick1->kick_count++;
-
ev.type = UEV_LOAD_KICK_CLIENT;
ev.si_cur = kick1;
ev.si_other = candidate;
--
2.56.0
More information about the openwrt-devel
mailing list