From 0e9392ec89207247a3fb73fac5eec7ff45b42689 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期三, 26 一月 2022 18:18:52 +0800 Subject: [PATCH] 算力轮询周期 --- src/pages/analysisPower/index/App.vue | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/pages/analysisPower/index/App.vue b/src/pages/analysisPower/index/App.vue index a5a1294..e5b7ce9 100644 --- a/src/pages/analysisPower/index/App.vue +++ b/src/pages/analysisPower/index/App.vue @@ -231,13 +231,15 @@ return arry; }, pollCycle() { + if (this.PollData.PollValidCount===0||!this.PollData.PollValidCount) { + return 0 + } let sumPollingCamera = 0; this.PollData.CameraList.forEach(cam => { if (cam.run_type === 0) { sumPollingCamera++ } }) - // 鎵�鏈夎疆璇㈢殑鎽勫儚鏈烘�绘暟 * 杞鏃堕棿 / 杞绠楀姏 - 1 let ret = (sumPollingCamera * this.PollData.Config.poll_period) / this.PollData.PollValidCount - 1 if (String(ret).indexOf(".") > 0) { -- Gitblit v1.8.0