metrics: fix cast omission in cpu_syscall.go (#22262)

fixes an regression which caused build failure on certain platforms
pull/22288/head
isdyaufh8o7cq 4 years ago committed by GitHub
parent e74bd587f7
commit 477fd420b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      metrics/cpu_syscall.go

@ -31,5 +31,5 @@ func getProcessCPUTime() int64 {
log.Warn("Failed to retrieve CPU time", "err", err)
return 0
}
return (usage.Utime.Sec+usage.Stime.Sec)*100 + int64(usage.Utime.Usec+usage.Stime.Usec)/10000 //nolint:unconvert
return int64(usage.Utime.Sec+usage.Stime.Sec)*100 + int64(usage.Utime.Usec+usage.Stime.Usec)/10000 //nolint:unconvert
}

Loading…
Cancel
Save