Skip to content

Commit

Permalink
processmetrics: explicit type conversion to support arm64 (#4446)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlegner authored Nov 24, 2023
1 parent c890767 commit 799ed12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/private/processmetrics/processmetrics_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ func (c *procStatCollector) updateStat() error {
if err != nil {
return err
}
newCount := taskStat.Nlink - 2
//nolint:unconvert // this is required for arm64 support
newCount := uint64(taskStat.Nlink - 2)
if newCount != c.lastTaskCount {
c.taskListUpdates++
c.myProcs, err = procfs.AllThreads(c.myPid)
Expand Down

0 comments on commit 799ed12

Please sign in to comment.