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
|
quantizationPtr = 16
|
||||||
timeoutPtr = 17
|
timeoutPtr = 17
|
||||||
intraRefreshPeriodPtr = 18
|
intraRefreshPeriodPtr = 18
|
||||||
rotatePtr = 19
|
rotatePtr = 19
|
||||||
)
|
)
|
||||||
|
|
||||||
// Other misc consts
|
// Other misc consts
|
||||||
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue