diff --git a/pkg/private/processmetrics/processmetrics_linux.go b/pkg/private/processmetrics/processmetrics_linux.go index 3132fa6251..bd7166dc10 100644 --- a/pkg/private/processmetrics/processmetrics_linux.go +++ b/pkg/private/processmetrics/processmetrics_linux.go @@ -123,7 +123,7 @@ func (c *procStatCollector) updateStat() error { if err != nil { return err } - newCount := taskStat.Nlink - 2 + newCount := uint64(taskStat.Nlink - 2) if newCount != c.lastTaskCount { c.taskListUpdates++ c.myProcs, err = procfs.AllThreads(c.myPid)