1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-24 13:48:56 +08:00

Remove extraneous -1 from users function for AIX

This commit is contained in:
Dylan Myers 2024-05-15 22:51:58 -04:00
parent bd42769f87
commit 9be5f7d0ad

View File

@ -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 {