extend cpu usage reading time

This commit is contained in:
richardsonjack 2018-05-03 14:34:33 +09:30
parent 78d42be3ba
commit fd6df433bc
1 changed files with 2 additions and 2 deletions

View File

@ -431,7 +431,7 @@ func revidReportActions(pin int) (int, error) {
stat.CPUStatAll.GuestNice stat.CPUStatAll.GuestNice
idle1 := stat.CPUStatAll.Idle idle1 := stat.CPUStatAll.Idle
time.Sleep(time.Millisecond * 100) time.Sleep(time.Millisecond * 1000)
stat, err = linuxproc.ReadStat("/proc/stat") stat, err = linuxproc.ReadStat("/proc/stat")
if err != nil { if err != nil {