From fd6df433bc0bfa132417598de85e817418f05ff4 Mon Sep 17 00:00:00 2001 From: richardsonjack <richardson.jack@outlook.com> Date: Thu, 3 May 2018 14:34:33 +0930 Subject: [PATCH] extend cpu usage reading time --- RevidCLI.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RevidCLI.go b/RevidCLI.go index a563916f..8e042461 100644 --- a/RevidCLI.go +++ b/RevidCLI.go @@ -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 {