Skip to content

Commit b68994e

Browse files
committed
refactor: get overall cpu usage
1 parent eea74c9 commit b68994e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/status/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func Disk(INTERVAL *float64) (uint64, uint64) {
7373
}
7474

7575
func Cpu(INTERVAL *float64) float64 {
76-
cpuInfo, _ := cpu.Percent(time.Duration(*INTERVAL*float64(time.Second)), true)
76+
cpuInfo, _ := cpu.Percent(time.Duration(*INTERVAL*float64(time.Second)), false)
7777
return math.Round(cpuInfo[0]*10) / 10
7878
}
7979

0 commit comments

Comments
 (0)