From a6810bb6ecf23f0747ea41038635f6706d8fae59 Mon Sep 17 00:00:00 2001 From: Markus Legner Date: Fri, 24 Nov 2023 11:53:54 +0100 Subject: [PATCH] processmetrics: explicit type conversion to support arm64 --- pkg/private/processmetrics/processmetrics_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/private/processmetrics/processmetrics_linux.go b/pkg/private/processmetrics/processmetrics_linux.go index 3132fa6251..2953df24e3 100644 --- a/pkg/private/processmetrics/processmetrics_linux.go +++ b/pkg/private/processmetrics/processmetrics_linux.go @@ -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)