Merge pull request #371 from aidvu/fstab-swap

luci-mod-admin-full: mount points SWAP fix
This commit is contained in:
Jo-Philipp Wich 2015-04-27 15:06:42 +02:00
commit 2243a3f937

View file

@ -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