From e7f2e6bc8ee2bbbfd3d1f7caa570a6529cc03eee Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 20 May 2024 10:07:41 +0200 Subject: [PATCH] luci-mod-status: fix ordering realtime connections by traffic Add raw byte values to properly order rows by transferred bytes, regardless of the dispalyed unit. Fixes: #7129 Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/view/status/connections.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/connections.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/connections.js index 23ff1df53ea5..bb5e937e3629 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/connections.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/connections.js @@ -135,7 +135,7 @@ return view.extend({ c.layer4.toUpperCase(), '%h'.format(c.hasOwnProperty('sport') ? (src + ':' + c.sport) : src), '%h'.format(c.hasOwnProperty('dport') ? (dst + ':' + c.dport) : dst), - '%1024.2mB (%d %s)'.format(c.bytes, c.packets, _('Pkts.')) + [ c.bytes, '%1024.2mB (%d %s)'.format(c.bytes, c.packets, _('Pkts.')) ] ]); }