Waiting for trace

This commit is contained in:
bourquecharles
2021-06-25 09:35:47 -04:00
parent d8b501fff0
commit e75c163248
16 changed files with 468 additions and 257 deletions

View File

@@ -60,14 +60,15 @@ const StatisticsChartList = ({ selectedDeviceId, lastRefresh }) => {
// Looping through the interfaces of the log
for (const inter of log.data.interfaces) {
interfaceList[interfaceTypes[inter.name]][0].data.push(
Math.floor(inter.counters.tx_bytes / 1024),
inter.counters?.tx_bytes? Math.floor(inter.counters.tx_bytes / 1024) : 0
);
interfaceList[interfaceTypes[inter.name]][1].data.push(
Math.floor(inter.counters.rx_bytes / 1024),
inter.counters?.rx_bytes? Math.floor(inter.counters.rx_bytes / 1024) : 0
);
}
}
const options = {
chart: {
id: 'chart',
@@ -105,7 +106,6 @@ const StatisticsChartList = ({ selectedDeviceId, lastRefresh }) => {
interfaceList,
settings: options,
};
if (statOptions !== newOptions) {
setStatOptions(newOptions);
}