From 63cc441764d60cc228d62a589ab357a8535f6a25 Mon Sep 17 00:00:00 2001 From: Nash Kaminski <36900518+gs-kamnas@users.noreply.github.com> Date: Mon, 12 Feb 2024 11:23:52 -0600 Subject: [PATCH] Correct accidental regression in scheduler introduced in https://github.com/ytti/oxidized/pull/3060 (#3064) --- lib/oxidized/jobs.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oxidized/jobs.rb b/lib/oxidized/jobs.rb index c1008e8d2..e205fad7b 100644 --- a/lib/oxidized/jobs.rb +++ b/lib/oxidized/jobs.rb @@ -49,7 +49,7 @@ def increment # a) less threads running than the total amount of nodes # b) we want less than the max specified number of threads - want = [(@want + 1), @nodes.size, @max].min + @want = [(@want + 1), @nodes.size, @max].min end def work