Skip to content

Commit

Permalink
Correctly handle speed = -1
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Fenwick authored and systemcrash committed Jun 24, 2024
1 parent 05e4b54 commit db6234c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) });

Expand Down

0 comments on commit db6234c

Please sign in to comment.