Skip to content

Commit

Permalink
Merge pull request #371 from aidvu/fstab-swap
Browse files Browse the repository at this point in the history
luci-mod-admin-full: mount points SWAP fix
  • Loading branch information
jow- committed Apr 27, 2015
2 parents f322842 + 64b052b commit 2243a3f
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -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

0 comments on commit 2243a3f

Please sign in to comment.