mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 08:31:46 +04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user