remove multiplication factor

This commit is contained in:
renaynay 2020-05-12 15:20:14 +02:00
parent 1474c48da1
commit 9d51ba19db
No known key found for this signature in database
GPG key ID: 6557F5413D663EDB

View file

@ -33,7 +33,7 @@ func ReadCPUStats(stats *CPUStats) {
} }
// requesting all cpu times will always return an array with only one time stats entry // requesting all cpu times will always return an array with only one time stats entry
timeStat := timeStats[0] timeStat := timeStats[0]
stats.GlobalTime = int64((timeStat.User + timeStat.Nice + timeStat.System) * 128) stats.GlobalTime = int64((timeStat.User + timeStat.Nice + timeStat.System))
stats.GlobalWait = int64((timeStat.Iowait) * 128) stats.GlobalWait = int64((timeStat.Iowait))
stats.LocalTime = getProcessCPUTime() stats.LocalTime = getProcessCPUTime()
} }