We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3179fa commit 1474c48Copy full SHA for 1474c48
metrics/cpu_enabled.go
@@ -33,7 +33,7 @@ func ReadCPUStats(stats *CPUStats) {
33
}
34
// requesting all cpu times will always return an array with only one time stats entry
35
timeStat := timeStats[0]
36
- stats.GlobalTime = int64((timeStat.User + timeStat.Nice + timeStat.System)*128)
37
- stats.GlobalWait = int64((timeStat.Iowait)*128)
+ stats.GlobalTime = int64((timeStat.User + timeStat.Nice + timeStat.System) * 128)
+ stats.GlobalWait = int64((timeStat.Iowait) * 128)
38
stats.LocalTime = getProcessCPUTime()
39
0 commit comments