luci-mod-admin-full: mount points SWAP fix
SWAP section was showing an error. Fixed it to display the devices/size properly.
This commit is contained in:
parent
f322842265
commit
64b052bbd8
1 changed files with 6 additions and 1 deletions
|
@ -190,7 +190,12 @@ dev.cfgvalue = function(self, section)
|
||||||
if v then return "Label: %s" % v end
|
if v then return "Label: %s" % v end
|
||||||
|
|
||||||
v = Value.cfgvalue(self, section) or "?"
|
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
|
end
|
||||||
|
|
||||||
return m
|
return m
|
||||||
|
|
Loading…
Reference in a new issue