mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralgw-ui.git
				synced 2025-10-31 02:38:01 +00:00 
			
		
		
		
	2.6.20: reboot/blink/trace UI fixes, now using global websocket to update UI and notify user on device connection/disconnection
This commit is contained in:
		| @@ -133,18 +133,18 @@ const StatisticsChartList = ({ setOptions, section, setStart, setEnd, time }) => | ||||
|         if (version > 0) { | ||||
|           const prevTx = prevTxObj[inter.name] !== undefined ? prevTxObj[inter.name] : 0; | ||||
|           const prevRx = prevTxObj[inter.name] !== undefined ? prevRxObj[inter.name] : 0; | ||||
|           const tx = inter.counters ? inter.counters.tx_bytes : 0; | ||||
|           const rx = inter.counters ? inter.counters.rx_bytes : 0; | ||||
|           const tx = inter.counters ? Math.floor(inter.counters.tx_bytes / 1024) : 0; | ||||
|           const rx = inter.counters ? Math.floor(inter.counters.rx_bytes / 1024) : 0; | ||||
|           interfaceList[interfaceTypes[inter.name]][0].data.push(Math.max(0, tx - prevTx)); | ||||
|           interfaceList[interfaceTypes[inter.name]][1].data.push(Math.max(0, rx - prevRx)); | ||||
|           prevTxObj[inter.name] = tx; | ||||
|           prevRxObj[inter.name] = rx; | ||||
|         } else { | ||||
|           interfaceList[interfaceTypes[inter.name]][0].data.push( | ||||
|             inter.counters ? Math.floor(inter.counters.tx_bytes) : 0, | ||||
|             inter.counters ? Math.floor(inter.counters.tx_bytes / 1024) : 0, | ||||
|           ); | ||||
|           interfaceList[interfaceTypes[inter.name]][1].data.push( | ||||
|             inter.counters ? Math.floor(inter.counters.rx_bytes) : 0, | ||||
|             inter.counters ? Math.floor(inter.counters.rx_bytes / 1024) : 0, | ||||
|           ); | ||||
|         } | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Charles
					Charles