diff --git a/src/rust/lqos_node_manager/static/circuit_queue.html b/src/rust/lqos_node_manager/static/circuit_queue.html index 9869c62d..ab6aa74a 100644 --- a/src/rust/lqos_node_manager/static/circuit_queue.html +++ b/src/rust/lqos_node_manager/static/circuit_queue.html @@ -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; } } diff --git a/src/rust/lqos_node_manager/static/main.html b/src/rust/lqos_node_manager/static/main.html index 4014c490..9a5789d6 100644 --- a/src/rust/lqos_node_manager/static/main.html +++ b/src/rust/lqos_node_manager/static/main.html @@ -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'},