summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/htdocs
diff options
context:
space:
mode:
authorStephen Fenwick <stephen@stephenfenwick.co.nz>2024-06-18 20:47:43 +1200
committerPaul Donald <newtwen+github@gmail.com>2024-06-24 14:20:08 +0200
commitdb6234c23735c6f0909679128ae85c50cf436001 (patch)
tree81b75cbb6e54c2868151b8af761b5e1696549eed /modules/luci-mod-status/htdocs
parent05e4b54444536be6ec307b6fa89f86a357c45267 (diff)
Correctly handle speed = -1
Diffstat (limited to 'modules/luci-mod-status/htdocs')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/29_ports.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/29_ports.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/29_ports.js
index b511897921..3718d70ccf 100644
--- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/29_ports.js
+++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/29_ports.js
@@ -210,7 +210,7 @@ function buildInterfaceMapping(zones, networks) {
}
function formatSpeed(carrier, speed, duplex) {
- if (speed && duplex) {
+ if ((speed > 0) && duplex) {
var d = (duplex == 'half') ? '\u202f(H)' : '',
e = E('span', { 'title': _('Speed: %d Mibit/s, Duplex: %s').format(speed, duplex) });