From a8d624c0502c241feadcfba71ba1442b22d9908b Mon Sep 17 00:00:00 2001 From: Satoshi Fujii Date: Fri, 15 Oct 2021 06:55:11 +0000 Subject: Fix microsec timestamp not properly handled Current heartbeat service assumes lastEpochMicrosec timestamp in VES notification is represented as milli-seconds, but some devices sends micro-sec timestamp in the field. In that case, the heartbeat notification was not working due to timestamp comparison was not done properly. Signed-off-by: Satoshi Fujii Issue-ID: DCAEGEN2-2940 Change-Id: Id7c9241de70cb3ff7ee59cf1e2c60089ff96a42b --- tests/test2.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test2.json') diff --git a/tests/test2.json b/tests/test2.json index 3a2f5c5..b582111 100644 --- a/tests/test2.json +++ b/tests/test2.json @@ -5,12 +5,12 @@ "domain": "heartbeat", "eventId": "mvfs10", "eventName": "Heartbeat_vFW", - "lastEpochMicrosec": 1544165792763, + "lastEpochMicrosec": 1544165792763000, "priority": "Normal", "reportingEntityName": "ibcx0001vm002oam001", "sequence": 1000, "sourceName": "SOURCE_NAME2", - "startEpochMicrosec": 1544165792763, + "startEpochMicrosec": 1544165792763000, "version": "4.0.2", "reportingEntityId": "cc305d54-75b4-431b-adb2-eb6b9e541234", "sourceId": "VNFB_SRC5", -- cgit 1.2.3-korg