From f53eca00a809f1c703874b4e8eee1f65217fcf82 Mon Sep 17 00:00:00 2001 From: christopher Date: Sat, 29 Dec 2018 03:11:41 +0100 Subject: [PATCH] fix host cpu lookup --- util/sys-cpu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/sys-cpu.go b/util/sys-cpu.go index 864acd6..e5e6b45 100644 --- a/util/sys-cpu.go +++ b/util/sys-cpu.go @@ -19,7 +19,7 @@ type SysCPU struct { func GetSysCPU() []SysCPU { stats := []SysCPU{} - files, err := filepath.Glob("/sys/devices/system/cpu/cpu[0-999]") + files, err := filepath.Glob("/sys/devices/system/cpu/cpu[0-9]*") if err != nil { fmt.Fprintf(os.Stderr, "Cannot read cpu infos from sys fs: %s\n", err) return stats