Skip to content

Commit 1474c48

Browse files
committed
fixed lint error
1 parent d3179fa commit 1474c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metrics/cpu_enabled.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func ReadCPUStats(stats *CPUStats) {
3333
}
3434
// requesting all cpu times will always return an array with only one time stats entry
3535
timeStat := timeStats[0]
36-
stats.GlobalTime = int64((timeStat.User + timeStat.Nice + timeStat.System)*128)
37-
stats.GlobalWait = int64((timeStat.Iowait)*128)
36+
stats.GlobalTime = int64((timeStat.User + timeStat.Nice + timeStat.System) * 128)
37+
stats.GlobalWait = int64((timeStat.Iowait) * 128)
3838
stats.LocalTime = getProcessCPUTime()
3939
}

0 commit comments

Comments
 (0)