Skip to content

Commit

Permalink
luci-mod-status: fix ordering realtime connections by traffic
Browse files Browse the repository at this point in the history
Add raw byte values to properly order rows by transferred bytes,
regardless of the dispalyed unit.

Fixes: openwrt#7129
Signed-off-by: Jo-Philipp Wich <[email protected]>
  • Loading branch information
jow- committed May 20, 2024
1 parent fbd98a3 commit e7f2e6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.')) ]
]);
}

Expand Down

0 comments on commit e7f2e6b

Please sign in to comment.