From cf41b47b773cd4c10e2d74e970c7e70270861e2d Mon Sep 17 00:00:00 2001 From: "Herbert \"TheBracket" Date: Thu, 23 Mar 2023 13:50:19 -0500 Subject: [PATCH] Issue 288 - 0s showing up as dots, delays unit (#295) * Hide zero values for throughput, backlog and delays graphs Relates to ISSUE #288 * New function `array_to_zero` to reduce repetition. * Transform zero values to `null` in Y value arrays for the throughput, backlog and delay graphs on circuit_info.html * Also change tin labelling to match the "backlog" graph on Delays. * Reduce marker size. * Scale displayed/graphed queue delays to ms References ISSUE 288 Scale the delays graph entries, which are apparently in usec, to ms. --- .../static/circuit_queue.html | 30 +++++++++++++------ src/rust/lqos_node_manager/static/lqos.js | 6 ++++ 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/src/rust/lqos_node_manager/static/circuit_queue.html b/src/rust/lqos_node_manager/static/circuit_queue.html index 6d0e3143..2c366327 100644 --- a/src/rust/lqos_node_manager/static/circuit_queue.html +++ b/src/rust/lqos_node_manager/static/circuit_queue.html @@ -332,13 +332,18 @@ Plotly.newPlot(graph, graph_data, { margin: { l:0,r:0,b:0,t:0,pad:4 }, yaxis: { automargin: true, title: "Bits" }, xaxis: {automargin: true, title: "Time since now"} }); // Try to hide zeroes + // Fix the units on delay, convert from usec to ms for (let i=0; i