Circuit tree display should now actually do something.

This commit is contained in:
Herbert Wolverson 2024-07-16 12:37:56 -05:00
parent b3413411d0
commit 0693c71296
2 changed files with 11 additions and 3 deletions

View File

@ -544,10 +544,10 @@ function onTreeEvent(msg) {
let rxmitGraph = funnelGraphs[parent].rxmit;
let rttGraph = funnelGraphs[parent].rtt;
tpGraph.update(myMessage.current_throughput.down, myMessage.current_throughput.up);
rxmitGraph.update(myMessage.current_retransmits.down, myMessage.current_retransmits.up);
tpGraph.update(myMessage.current_throughput[0] * 8, myMessage.current_throughput[0] *8);
rxmitGraph.update(myMessage.current_retransmits[0], myMessage.current_retransmits[1]);
myMessage.rtts.forEach((rtt) => {
rttGraph.update(rtt);
rttGraph.updateMs(rtt);
});
tpGraph.chart.resize();
rxmitGraph.chart.resize();

View File

@ -42,5 +42,13 @@ export class DevicePingHistogram extends DashboardGraph {
this.option.series.data[bucket].value += 1;
this.chart.setOption(this.option);
}
updateMs(ping_time_ms) {
this.chart.hideLoading();
let bucket = Math.floor(ping_time_ms / 10);
bucket = Math.min(bucket, 19);
this.option.series.data[bucket].value += 1;
this.chart.setOption(this.option);
}
}