19414: Fix missing parens. 19414-backport-2.3.2
authorTom Clegg <tom@curii.com>
Tue, 23 Aug 2022 17:24:32 +0000 (13:24 -0400)
committerTom Clegg <tom@curii.com>
Thu, 25 Aug 2022 13:35:23 +0000 (09:35 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

services/keep-balance/collection.go

index 1e1e51abe7ebcd55e5d0ed7ca55eae02a8b56504..6755f90ae9e4ec2c5aac1431f47c2e86f2344fc4 100644 (file)
@@ -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()