Skip to content

Commit

Permalink
Updated variable nodesCount-->replicasCount
Browse files Browse the repository at this point in the history
  • Loading branch information
davidf146 committed May 29, 2023
1 parent 87b3ae2 commit ea4e607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cbcontainers/state/components/runtime_resolver_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (obj *ResolverDeploymentK8sObject) getDynamicReplicasCount(nodesToReplicasR
if err := obj.APIReader.List(context.Background(), nodesList); err != nil || nodesList.Items == nil || len(nodesList.Items) < 1 {
return nil, fmt.Errorf("error getting list of nodes: %v", err)
}
nodesCount := int32(math.Ceil(float64(len(nodesList.Items)) / float64(nodesToReplicasRatio)))
replicasCount := int32(math.Ceil(float64(len(nodesList.Items)) / float64(nodesToReplicasRatio)))

return &nodesCount, nil
return &replicasCount, nil
}

0 comments on commit ea4e607

Please sign in to comment.