Skip to content

Commit 7d95e80

Browse files
mlegnerjuagargi
authored andcommitted
processmetrics: explicit type conversion to support arm64 (scionproto#4446)
1 parent e4df23d commit 7d95e80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/private/processmetrics/processmetrics_linux.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ func (c *procStatCollector) updateStat() error {
123123
if err != nil {
124124
return err
125125
}
126-
newCount := taskStat.Nlink - 2
126+
//nolint:unconvert // this is required for arm64 support
127+
newCount := uint64(taskStat.Nlink - 2)
127128
if newCount != c.lastTaskCount {
128129
c.taskListUpdates++
129130
c.myProcs, err = procfs.AllThreads(c.myPid)

0 commit comments

Comments
 (0)