From 1474c48da1710216e8236975b2f7e5a7b14d76c0 Mon Sep 17 00:00:00 2001 From: renaynay <41963722+renaynay@users.noreply.github.com> Date: Fri, 8 May 2020 18:09:46 +0200 Subject: [PATCH] fixed lint error --- metrics/cpu_enabled.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/cpu_enabled.go b/metrics/cpu_enabled.go index e2963b598f..1df8bb1c7e 100644 --- a/metrics/cpu_enabled.go +++ b/metrics/cpu_enabled.go @@ -33,7 +33,7 @@ func ReadCPUStats(stats *CPUStats) { } // requesting all cpu times will always return an array with only one time stats entry timeStat := timeStats[0] - stats.GlobalTime = int64((timeStat.User + timeStat.Nice + timeStat.System)*128) - stats.GlobalWait = int64((timeStat.Iowait)*128) + stats.GlobalTime = int64((timeStat.User + timeStat.Nice + timeStat.System) * 128) + stats.GlobalWait = int64((timeStat.Iowait) * 128) stats.LocalTime = getProcessCPUTime() }