fix golint issues (#532)

This commit is contained in:
Kevin Wan
2021-03-02 00:04:12 +08:00
committed by GitHub
parent 51de0d0620
commit c4b2cddef7
2 changed files with 6 additions and 5 deletions

View File

@@ -67,6 +67,7 @@ func init() {
}
}
// RefreshCpu refreshes cpu usage and returns.
func RefreshCpu() uint64 {
total, err := totalCpuUsage()
if err != nil {