Skip to content

Commit

Permalink
metrics: fix cast omission in cpu_syscall.go (ethereum#22262)
Browse files Browse the repository at this point in the history
fixes an regression which caused build failure on certain platforms
  • Loading branch information
isdyaufh8o7cq authored Feb 8, 2021
1 parent e74bd58 commit 477fd42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics/cpu_syscall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 477fd42

Please sign in to comment.