From 1fc844ac42ae277722bf56a010b0358043203d2a Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 23 Aug 2022 13:24:32 -0400 Subject: [PATCH] 19414: Fix missing parens. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- services/keep-balance/collection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/keep-balance/collection.go b/services/keep-balance/collection.go index ccb01bdd10..d7a3fd981d 100644 --- a/services/keep-balance/collection.go +++ b/services/keep-balance/collection.go @@ -152,7 +152,7 @@ func (bal *Balancer) updateCollections(ctx context.Context, c *arvados.Client, c // Use about 1 goroutine per 2 CPUs. Based on experiments with // a 2-core host, using more concurrent database // calls/transactions makes this process slower, not faster. - for i := 0; i < runtime.NumCPU()+1/2; i++ { + for i := 0; i < (runtime.NumCPU()+1)/2; i++ { wg.Add(1) goSendErr(errs, func() error { defer wg.Done() -- 2.30.2