mirror of https://bitbucket.org/ausocean/av.git
extend cpu usage reading time
This commit is contained in:
parent
78d42be3ba
commit
fd6df433bc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue