From 97c00c3523bb37947cc7791923817b4e5d92827f Mon Sep 17 00:00:00 2001 From: HuangXin Date: Wed, 27 Jan 2021 18:34:14 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E4=BF=AE=E6=AD=A3=E8=BF=AA?= =?UTF-8?q?=E6=99=AE=E8=AE=BE=E5=A4=87=E6=9B=B4=E6=96=B0=E5=BF=83=E8=B7=B3?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=B7=A5=E4=BD=9C=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dispose/ability/impl/DpTechAbilityImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/dispose/ability/impl/DpTechAbilityImpl.java b/src/main/java/com/dispose/ability/impl/DpTechAbilityImpl.java index 015b1283..a21f834e 100644 --- a/src/main/java/com/dispose/ability/impl/DpTechAbilityImpl.java +++ b/src/main/java/com/dispose/ability/impl/DpTechAbilityImpl.java @@ -364,16 +364,18 @@ public class DpTechAbilityImpl implements DisposeAbility { public void periodTaskRuntime() { log.debug("++++DpTech Period Task Running"); - if (timerCnt++ % DpTechConfigValue.PROTECTION_UPGRADE_PERIOD == 0) { + if (timerCnt % DpTechConfigValue.PROTECTION_UPGRADE_PERIOD == 0) { // 定时检测防护对象 getDisposeDeviceProtectObject(); } // 更新心跳状态 - if (timerCnt++ % DisposeConfigValue.HEART_PERIOD_OF_SECOND == 0) { + if (timerCnt % DisposeConfigValue.HEART_PERIOD_OF_SECOND == 0) { devGetLinkStatus(); } + timerCnt++; + log.debug("----DpTech Period Task Running"); }