diff options
author | Jo-Philipp Wich <jo@mein.io> | 2024-05-20 10:07:41 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2024-05-20 10:07:41 +0200 |
commit | e7f2e6bc8ee2bbbfd3d1f7caa570a6529cc03eee (patch) | |
tree | aa00f27806158a62e6fdb8a972c7fa6c5f87fc16 /modules/luci-mod-status | |
parent | fbd98a3da6024935bf18de780b26fa4c5bbc408e (diff) |
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 <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-status')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/connections.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 23ff1df53e..bb5e937e36 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.')) ] ]); } |