From 4e0ff848ee2923ae100a11778c5352ee483fb961 Mon Sep 17 00:00:00 2001 From: Alexei Ledenev Date: Mon, 15 May 2023 16:31:50 +0300 Subject: [PATCH] fix linter --- internal/usage/record.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/usage/record.go b/internal/usage/record.go index 88234a1..e31ed18 100644 --- a/internal/usage/record.go +++ b/internal/usage/record.go @@ -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)) } }