From 20dc837a79123698e116c91e66ca51811f435235 Mon Sep 17 00:00:00 2001 From: David Colburn Date: Wed, 29 Nov 2023 15:28:06 -0800 Subject: [PATCH] fix float --- utils/cpu_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/cpu_linux.go b/utils/cpu_linux.go index 4f04e95c..991aed44 100644 --- a/utils/cpu_linux.go +++ b/utils/cpu_linux.go @@ -263,7 +263,7 @@ func readIntFromFile(filename string) (int, error) { return strconv.Atoi(s) } -func getPodCPUCount(fs procfs.FS) (int, error) { +func getPodCPUCount(fs procfs.FS) (float64, error) { cpuInfo, err := fs.CPUInfo() if err != nil { return 0, err