aboutsummaryrefslogtreecommitdiffstats
path: root/snmptrap/snmptrapd.py
diff options
context:
space:
mode:
authorLadue, David (dl3158) <dl3158@att.com>2018-08-17 12:05:49 -0400
committerLadue, David (dl3158) <dl3158@att.com>2018-08-17 12:06:05 -0400
commit5f37a3be8fad7a2e795f508f7c216d679cebd28e (patch)
tree8553969e7ab49b2546ac15dde1b79e9b7c1d834c /snmptrap/snmptrapd.py
parentb7fef09b274c7153720dbd18c7952d73889bfc9a (diff)
updates to timeout variables
Change-Id: Ic7dfc585af74f3341b58ef53f16cb09f0cc94098 Issue-ID: DCAEGEN2-630 Signed-off-by: Ladue, David (dl3158) <dl3158@att.com>
Diffstat (limited to 'snmptrap/snmptrapd.py')
-rw-r--r--snmptrap/snmptrapd.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/snmptrap/snmptrapd.py b/snmptrap/snmptrapd.py
index cbf004b..66cc25f 100644
--- a/snmptrap/snmptrapd.py
+++ b/snmptrap/snmptrapd.py
@@ -175,12 +175,12 @@ def log_all_arriving_traps():
if curr_hour != tds.last_hour:
roll_all_logs()
tds.last_hour = curr_hour
- else:
- # otherwise, assume daily roll
- curr_day = datetime.datetime.now().day
- if curr_day != tds.last_day:
- roll_all_logs()
- tds.last_day = curr_day
+ else:
+ # otherwise, assume daily roll
+ curr_day = datetime.datetime.now().day
+ if curr_day != tds.last_day:
+ roll_all_logs()
+ tds.last_day = curr_day
# always log arriving trap
try: