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