From 2d0ae217952ece9900c3838004f3061ca478c7b8 Mon Sep 17 00:00:00 2001 From: Markus Legner Date: Fri, 24 Nov 2023 11:37:13 +0100 Subject: [PATCH] processmetrics: explicit type conversion to support arm64 --- pkg/private/processmetrics/processmetrics_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)