* luci/admin-full: fix another possible nil value
This commit is contained in:
parent
7dfe9098a5
commit
662186e815
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ end
|
|||
|
||||
used = v:option(DummyValue, "used", translate("a_s_fstab_used"))
|
||||
function used.cfgvalue(self, section)
|
||||
return mounts[section].percent .. " (" ..
|
||||
return ( mounts[section].percent or "0%" ) .. " (" ..
|
||||
luci.tools.webadmin.byte_format(
|
||||
( tonumber(mounts[section].used) or 0 ) * 1024
|
||||
) .. ")"
|
||||
|
|
Loading…
Reference in a new issue