projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
modules/admin-full: convert admin templates to new network model
[project/luci.git]
/
modules
/
admin-full
/
luasrc
/
view
/
admin_network
/
iface_status.htm
diff --git
a/modules/admin-full/luasrc/view/admin_network/iface_status.htm
b/modules/admin-full/luasrc/view/admin_network/iface_status.htm
index
4deebee
..
c2790db
100644
(file)
--- a/
modules/admin-full/luasrc/view/admin_network/iface_status.htm
+++ b/
modules/admin-full/luasrc/view/admin_network/iface_status.htm
@@
-7,7
+7,7
@@
function(x)
{
var ifc = x.responseText ? eval('(' + x.responseText + ')') : { };
- if (ifc)
+ if (ifc
&& (ifc = ifc[0])
)
{
var is_up = (ifc.flags && ifc.flags.up);
var rxb = ifc.stats ? (ifc.stats["rx_bytes"] / 1024) : 0;