From 2d03c2dcc499f0c0d65296ef9a68b629010ece0b Mon Sep 17 00:00:00 2001 From: Tobias Trabelsi Date: Mon, 6 Nov 2023 21:28:14 +0100 Subject: [PATCH] derp --- cmd/woodpecker-autoscaler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/woodpecker-autoscaler.go b/cmd/woodpecker-autoscaler.go index 001dc91..bee1321 100644 --- a/cmd/woodpecker-autoscaler.go +++ b/cmd/woodpecker-autoscaler.go @@ -51,7 +51,7 @@ func main() { log.WithFields(log.Fields{ "Caller": "Main", }).Infof("Currently owning %d Agents", len(ownedNodes)) - if pendingTasks < len(ownedNodes) { + if pendingTasks > len(ownedNodes) { server, err := hetzner.CreateNewAgent(cfg) if err != nil { log.WithFields(log.Fields{