luci-mod-status: Remove port suffix where not applicable

Submitted-by: Olli Asikainen <olli.asikainen@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Olli Asikainen 2019-02-08 16:49:04 +02:00 committed by Jo-Philipp Wich
parent a4f5b40025
commit 8d839ddfb8

View file

@ -165,8 +165,8 @@
rows.push([
c.layer3.toUpperCase(),
c.layer4.toUpperCase(),
src + ':' + c.sport,
dst + ':' + c.dport,
c.hasOwnProperty('sport') ? (src + ':' + c.sport) : src,
c.hasOwnProperty('dport') ? (dst + ':' + c.dport) : dst,
'%1024.2mB (%d <%:Pkts.%>)'.format(c.bytes, c.packets)
]);
}