mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Ignore 0 band in quantile display.
This commit is contained in:
parent
858ed06286
commit
2906c1b8f0
@ -404,8 +404,8 @@
|
||||
let up = 0.0 - yUp[i];
|
||||
let down_slot = Math.floor((down / circuit_info.capacity[0]) * 10.0);
|
||||
let up_slot = Math.floor((up / circuit_info.capacity[1]) * 10.0);
|
||||
quantiles[0][down_slot] += 1;
|
||||
quantiles[1][up_slot] += 1;
|
||||
if (down_slot > 0) quantiles[0][down_slot] += 1;
|
||||
if (up_slot > 0) quantiles[1][up_slot] += 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -206,8 +206,13 @@
|
||||
for (let i=0; i<10; i++) {
|
||||
x1.push(i*10);
|
||||
x2.push(i*10);
|
||||
y1.push(tp[i][0]);
|
||||
y2.push(tp[i][1]);
|
||||
if (i > 0) {
|
||||
y1.push(tp[i][0]);
|
||||
y2.push(tp[i][1]);
|
||||
} else {
|
||||
y1.push(0);
|
||||
y2.push(0);
|
||||
}
|
||||
}
|
||||
let data = [
|
||||
{x: x1, y:y1, type: 'bar', name: 'Download'},
|
||||
|
Loading…
Reference in New Issue
Block a user