From af3f4d204db9bf4d37176f6d1e3909e8e60fa0f9 Mon Sep 17 00:00:00 2001 From: Dylan Myers Date: Wed, 15 May 2024 12:55:11 -0400 Subject: [PATCH] Correct arguments for AIX percpu --- cpu/cpu_aix_nocgo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/cpu_aix_nocgo.go b/cpu/cpu_aix_nocgo.go index e4594b2..99abaed 100644 --- a/cpu/cpu_aix_nocgo.go +++ b/cpu/cpu_aix_nocgo.go @@ -14,7 +14,7 @@ import ( func TimesWithContext(ctx context.Context, percpu bool) ([]TimesStat, error) { var ret []TimesStat if percpu { - per_out, err := invoke.CommandWithContext(ctx, "sar", "-u", "10", "1") + per_out, err := invoke.CommandWithContext(ctx, "sar", "-u", "-P", "ALL", "10", "1") if err != nil { return nil, err }