parent
105610c578
commit
97c00c3523
|
@ -364,16 +364,18 @@ public class DpTechAbilityImpl implements DisposeAbility {
|
||||||
public void periodTaskRuntime() {
|
public void periodTaskRuntime() {
|
||||||
log.debug("++++DpTech Period Task Running");
|
log.debug("++++DpTech Period Task Running");
|
||||||
|
|
||||||
if (timerCnt++ % DpTechConfigValue.PROTECTION_UPGRADE_PERIOD == 0) {
|
if (timerCnt % DpTechConfigValue.PROTECTION_UPGRADE_PERIOD == 0) {
|
||||||
// 定时检测防护对象
|
// 定时检测防护对象
|
||||||
getDisposeDeviceProtectObject();
|
getDisposeDeviceProtectObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 更新心跳状态
|
// 更新心跳状态
|
||||||
if (timerCnt++ % DisposeConfigValue.HEART_PERIOD_OF_SECOND == 0) {
|
if (timerCnt % DisposeConfigValue.HEART_PERIOD_OF_SECOND == 0) {
|
||||||
devGetLinkStatus();
|
devGetLinkStatus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timerCnt++;
|
||||||
|
|
||||||
log.debug("----DpTech Period Task Running");
|
log.debug("----DpTech Period Task Running");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue