From 9be5f7d0adeea2c79bd86f87998f31fcc9454277 Mon Sep 17 00:00:00 2001 From: Dylan Myers Date: Wed, 15 May 2024 22:51:58 -0400 Subject: [PATCH] Remove extraneous -1 from users function for AIX --- host/host_aix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/host_aix.go b/host/host_aix.go index a0922ee..23a1a62 100644 --- a/host/host_aix.go +++ b/host/host_aix.go @@ -92,7 +92,7 @@ func UsersWithContext(ctx context.Context) ([]UserStat, error) { } hf := strings.Fields(lines[1]) // headers - for l := 2; l < len(lines)-1; l++ { + for l := 2; l < len(lines); l++ { v := strings.Fields(lines[l]) // values us := &UserStat{} for i, header := range hf {