Don't reset timer that aren't used - waste of time

This commit is contained in:
Cort Buffington 2016-09-09 22:31:08 -05:00
parent d2279134f3
commit ad1e9a2ca2
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ class bridgeIPSC(IPSC):
_target = rule['DST_NET']
# TGID matches a rule source, reset its timer
if _ts == rule['SRC_TS'] and _dst_group == rule['SRC_GROUP'] and (rule['TO_TYPE'] == 'ON' or rule['TO_TYPE'] == 'OFF'):::
if _ts == rule['SRC_TS'] and _dst_group == rule['SRC_GROUP'] and (rule['TO_TYPE'] == 'ON' or rule['TO_TYPE'] == 'OFF'):
rule['TIMER'] = now + rule['TIMEOUT']
logger.info('(%s) Source group transmission match for rule \"%s\". Reset timeout to %s', _network, rule['NAME'], rule['TIMER'])