mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-10-30 18:17:59 +00:00 
			
		
		
		
	WIFI-3216 using currentMillis() rather than 0
This commit is contained in:
		 Kareem Dabbour
					Kareem Dabbour
				
			
				
					committed by
					
						 Mike Hansen
						Mike Hansen
					
				
			
			
				
	
			
			
			 Mike Hansen
						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