diff --git a/cpu/cpu_linux.go b/cpu/cpu_linux.go index b5a20e366..da467e2dd 100644 --- a/cpu/cpu_linux.go +++ b/cpu/cpu_linux.go @@ -309,7 +309,7 @@ func InfoWithContext(ctx context.Context) ([]InfoStat, error) { func parseStatLine(line string) (*TimesStat, error) { fields := strings.Fields(line) - if len(fields) == 0 { + if len(fields) < 8 { return nil, errors.New("stat does not contain cpu info") }