diff options
Diffstat (limited to 'modules/luci-mod-status/htdocs')
-rw-r--r-- | modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/29_ports.js | 2 |
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 31af6f460c..b226e4f3c6 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 @@ -217,7 +217,7 @@ function formatSpeed(speed, duplex) { } function formatStats(portdev) { - var stats = portdev._devstate('stats'); + var stats = portdev._devstate('stats') || {}; return ui.itemlist(E('span'), [ _('Received bytes'), '%1024mB'.format(stats.rx_bytes), |