From 3290f29282e3a70d4128bc81ad5d2d10b3a84160 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Wed, 17 Jul 2024 09:17:52 -0500 Subject: [PATCH] Network tree summary is scaled appropriately. --- .../node_manager/js_build/src/dashlets/top_tree_summary.js | 4 +++- src/rust/lqosd/src/node_manager/ws/ticker/tree_summary.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rust/lqosd/src/node_manager/js_build/src/dashlets/top_tree_summary.js b/src/rust/lqosd/src/node_manager/js_build/src/dashlets/top_tree_summary.js index 54c6b745..60715d51 100644 --- a/src/rust/lqosd/src/node_manager/js_build/src/dashlets/top_tree_summary.js +++ b/src/rust/lqosd/src/node_manager/js_build/src/dashlets/top_tree_summary.js @@ -26,9 +26,10 @@ export class TopTreeSummary extends BaseDashlet { let t = document.createElement("table"); t.id = this.id + "_table"; - t.classList.add("table", "table-sm", "mytable"); + t.classList.add("table", "table-sm", "mytable", "small"); let th = document.createElement("thead"); + th.classList.add('small'); th.appendChild(theading("Branch")); th.appendChild(theading("DL ⬇️")); th.appendChild(theading("UL ⬆️")); @@ -54,6 +55,7 @@ export class TopTreeSummary extends BaseDashlet { msg.data.forEach((r) => { let row = document.createElement("tr"); + row.classList.add("small"); let name = document.createElement("td"); name.innerText = r[1].name; name.classList.add("tiny"); diff --git a/src/rust/lqosd/src/node_manager/ws/ticker/tree_summary.rs b/src/rust/lqosd/src/node_manager/ws/ticker/tree_summary.rs index 94128f57..d774f5c8 100644 --- a/src/rust/lqosd/src/node_manager/ws/ticker/tree_summary.rs +++ b/src/rust/lqosd/src/node_manager/ws/ticker/tree_summary.rs @@ -10,7 +10,7 @@ pub async fn tree_summary(channels: Arc) { return; } - if let BusResponse::NetworkMap(nodes) = shaped_devices_tracker::get_top_n_root_queues(7) { + if let BusResponse::NetworkMap(nodes) = shaped_devices_tracker::get_top_n_root_queues(10) { let message = json!( {