From 9d51ba19db5adde37271c5c95443fde4ed81ee12 Mon Sep 17 00:00:00 2001 From: renaynay <41963722+renaynay@users.noreply.github.com> Date: Tue, 12 May 2020 15:20:14 +0200 Subject: [PATCH] remove multiplication factor --- 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 1df8bb1c7e..71c3922329 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)) + stats.GlobalWait = int64((timeStat.Iowait)) stats.LocalTime = getProcessCPUTime() }