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

@ -63,7 +63,7 @@ const (
quantizationPtr = 16
timeoutPtr = 17
intraRefreshPeriodPtr = 18
rotatePtr = 19
rotatePtr = 19
)
// Other misc consts
@ -431,7 +431,7 @@ func revidReportActions(pin int) (int, error) {
stat.CPUStatAll.GuestNice
idle1 := stat.CPUStatAll.Idle
time.Sleep(time.Millisecond * 100)
time.Sleep(time.Millisecond * 1000)
stat, err = linuxproc.ReadStat("/proc/stat")
if err != nil {