Skip to content

Commit

Permalink
2 small cgroup parsing fixes (#33844)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux authored Feb 10, 2025
1 parent 490d2c2 commit cb19a4d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/util/cgroups/pid_mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (pm *procPidMapper) refreshMapping(cacheValidity time.Duration) {
return nil
}

pid, err := strconv.ParseInt(de.Name(), 10, 64)
pid, err := strconv.ParseInt(de.Name(), 10, 0)
if err != nil {
return godirwalk.SkipThis
}
Expand Down
3 changes: 0 additions & 3 deletions pkg/util/cgroups/readerv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ func (r *readerV2) parseCgroups() (map[string]Cgroup, error) {
return err
}
res[id] = newCgroupV2(id, r.cgroupRoot, relPath, r.cgroupControllers, r.pidMapper)
if err != nil {
return err
}
}

return err
Expand Down

0 comments on commit cb19a4d

Please sign in to comment.