mirror of https://github.com/openwrt/luci.git
luci-mod-admin-full: mount points SWAP fix
SWAP section was showing an error. Fixed it to display the devices/size properly.pull/371/head
parent
f322842265
commit
64b052bbd8
|
@ -190,7 +190,12 @@ dev.cfgvalue = function(self, section)
|
|||
if v then return "Label: %s" % v end
|
||||
|
||||
v = Value.cfgvalue(self, section) or "?"
|
||||
return size[v] and "%s (%s MB)" % {v, size[v]} or v
|
||||
e = v and devices[v]
|
||||
if v and e and e.size then
|
||||
return "%s (%s MB)" % {v, e.size}
|
||||
else
|
||||
return v
|
||||
end
|
||||
end
|
||||
|
||||
return m
|
||||
|
|
Loading…
Reference in New Issue