From a1253f7cce202c9cd20260d2dca44d97e51aea89 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Thu, 21 Nov 2024 14:47:57 -0600 Subject: [PATCH] Fix undefined in the retransmits counter. --- .../lqosd/src/node_manager/js_build/src/graphs/top_n_sankey.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/lqosd/src/node_manager/js_build/src/graphs/top_n_sankey.js b/src/rust/lqosd/src/node_manager/js_build/src/graphs/top_n_sankey.js index 757bd539..56111478 100644 --- a/src/rust/lqosd/src/node_manager/js_build/src/graphs/top_n_sankey.js +++ b/src/rust/lqosd/src/node_manager/js_build/src/graphs/top_n_sankey.js @@ -62,7 +62,7 @@ export class TopNSankey extends DashboardGraph { }; if (isRedacted()) label.backgroundColor = label.color; - let name = r.ip_address+ " (" + scaleNumber(r.bits_per_second.down, 0) + ", " + r.tcp_retransmits.down + "/" + r.tcp_retransmits.up + ")"; + let name = r.ip_address+ " (" + scaleNumber(r.bits_per_second.down, 0) + ", " + r.tcp_retransmits[0].toFixed(1) + "/" + r.tcp_retransmits[1].toFixed(1) + ")"; let bytes = r.bits_per_second.down / 8; let bytesAsMegabits = bytes / 1000000; let maxBytes = r.plan.down / 8;