mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Circuit tree display should now actually do something.
This commit is contained in:
parent
b3413411d0
commit
0693c71296
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user