Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexei-led committed May 15, 2023
1 parent 9bc1c1b commit 4e0ff84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/usage/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func NodeInfoFromNode(cluster string, node *v1.Node) NodeInfo {
if instanceType == "" {
// get memory in rounded GB
memory := float64(node.Status.Capacity.Memory().Value())
memoryGB := math.Round(memory / 1024 / 1024 / 1024)
memoryGB := math.Round(memory / 1024 / 1024 / 1024) //nolint:gomnd
instanceType = fmt.Sprintf("fargate-%dvCPU-%dGB", node.Status.Capacity.Cpu().Value(), int(memoryGB))
}
}
Expand Down

0 comments on commit 4e0ff84

Please sign in to comment.