Skip to content

Commit

Permalink
pkg/util/cgroups: fix pid integer parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux committed Feb 8, 2025
1 parent e2b569b commit 5912954
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 5912954

Please sign in to comment.