From e5397b9345bf56601f816d7b2c94462a6cdbe9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Sat, 14 Sep 2024 14:39:00 +0300 Subject: Add more bandwidths to getStrokeWeight() --- root/html/pages/report/index.tt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/root/html/pages/report/index.tt b/root/html/pages/report/index.tt index b52a1a8..b6c4364 100644 --- a/root/html/pages/report/index.tt +++ b/root/html/pages/report/index.tt @@ -36,8 +36,10 @@ div.infow p { margin: 0; } * @return integer */ function getStrokeWeight(bw) { - var bws = { "1Mbits": 1, "10Mbits": 2, "100Mbits": 3, - "1Gbits": 4, "2Gbits": 5 + var bws = { "1Mbits": 1, "10Mbits": 1, "100Mbits": 1, + "1Gbits": 2, "2Gbits": 2, + "10Gbits": 3, "20Gbits": 3, + "100Gbits": 4, "200Gbits": 4 }; return (bw in bws) ? bws[bw] : 1; } -- cgit v1.2.1