aboutsummaryrefslogtreecommitdiffstats
path: root/miss_htbt_service
diff options
context:
space:
mode:
Diffstat (limited to 'miss_htbt_service')
-rw-r--r--miss_htbt_service/htbtworker.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/miss_htbt_service/htbtworker.py b/miss_htbt_service/htbtworker.py
index 467b2b7..6fbda2d 100644
--- a/miss_htbt_service/htbtworker.py
+++ b/miss_htbt_service/htbtworker.py
@@ -125,6 +125,9 @@ def process_msg(jsfile, user_name, password, ip_address, port_num, db_name):
jitem = json.loads(item)
srcname = (jitem['event']['commonEventHeader']['sourceName'])
lastepo = (jitem['event']['commonEventHeader']['lastEpochMicrosec'])
+ # if lastEpochMicrosec looks like microsec, align it with millisec
+ if lastepo > 1000000000000000:
+ lastepo = int(lastepo / 1000)
seqnum = (jitem['event']['commonEventHeader']['sequence'])
eventName = (jitem['event']['commonEventHeader']['eventName'])
except Exception as err: