Skip to content

Commit

Permalink
fix float
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Nov 29, 2023
1 parent faca0ad commit 20dc837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/cpu_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20dc837

Please sign in to comment.