mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ui.git
				synced 2025-10-30 18:27:58 +00:00 
			
		
		
		
	Merge pull request #85 from Telecominfraproject/bugfix/NETEXP-839
bugfix/NETEXP-839: Added comparison to filter out negative values of the traffic graph
This commit is contained in:
		| @@ -129,11 +129,17 @@ const Dashboard = () => { | ||||
|             clientDevices2dot4GHz.push([eventTimestamp, radios.is2dot4GHz || 0]); | ||||
|             clientDevices5GHz.push([eventTimestamp, total5GHz || 0]); | ||||
|  | ||||
|             trafficBytesDownstreamData.push([eventTimestamp, trafficBytesDownstream || 0]); | ||||
|             trafficBytesUpstreamData.push([eventTimestamp, trafficBytesUpstream || 0]); | ||||
|             trafficBytesDownstreamData.push([ | ||||
|               eventTimestamp, | ||||
|               (trafficBytesDownstream > 0 && trafficBytesDownstream) || 0, | ||||
|             ]); | ||||
|             trafficBytesUpstreamData.push([ | ||||
|               eventTimestamp, | ||||
|               (trafficBytesUpstream > 0 && trafficBytesUpstream) || 0, | ||||
|             ]); | ||||
|  | ||||
|             totalDown += trafficBytesDownstream || 0; | ||||
|             totalUp += trafficBytesUpstream || 0; | ||||
|             totalDown += (trafficBytesDownstream > 0 && trafficBytesDownstream) || 0; | ||||
|             totalUp += (trafficBytesUpstream > 0 && trafficBytesUpstream) || 0; | ||||
|           } | ||||
|         ); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sean Macfarlane
					Sean Macfarlane