fixed lint error

This commit is contained in:
renaynay 2020-05-08 18:09:46 +02:00
parent d3179fad23
commit 1474c48da1
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
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()
}