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

services/keep-balance/collection.go

index ccb01bdd10c5fb7f777d868a2aeefa175d494ace..d7a3fd981d4f03877e57b0426e739941411cf4a3 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()