mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-29 13:49:21 +08:00
Remove extraneous -1 from users function for AIX
This commit is contained in:
parent
bd42769f87
commit
9be5f7d0ad
@ -92,7 +92,7 @@ func UsersWithContext(ctx context.Context) ([]UserStat, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hf := strings.Fields(lines[1]) // headers
|
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
|
v := strings.Fields(lines[l]) // values
|
||||||
us := &UserStat{}
|
us := &UserStat{}
|
||||||
for i, header := range hf {
|
for i, header := range hf {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user