mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-01 19:17:52 +00:00
WIFI-3216 using currentMillis() rather than 0
This commit is contained in:
committed by
Mike Hansen
parent
27f406a615
commit
d026266bfa
@@ -209,10 +209,10 @@ public class MqttStatsPublisher implements StatsPublisherInterface {
|
||||
if (!metricRecordList.isEmpty()) {
|
||||
long serviceMetricTimestamp = System.currentTimeMillis();
|
||||
metricRecordList.stream().forEach(smr -> {
|
||||
// TODO use serviceMetricTimestamp rather than 0. This is done for now since there are some
|
||||
// TODO use serviceMetricTimestamp instead. This is done for now since there are some
|
||||
// channel metrics that have overlapping keys which messes up Cassandra if the same time stamp
|
||||
// is used and setting it to 0 allows the CloudEventDispatcherController to assign unique time stamps.
|
||||
smr.setCreatedTimestamp(0);
|
||||
// is used. This should allow for unique time stamps.
|
||||
smr.setCreatedTimestamp(System.currentTimeMillis());
|
||||
if (smr.getLocationId() == 0)
|
||||
smr.setLocationId(locationId);
|
||||
if (smr.getCustomerId() == 0)
|
||||
|
||||
Reference in New Issue
Block a user