* luci-0.8: backport second fstab fix
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 16 Sep 2008 02:01:05 +0000 (02:01 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 16 Sep 2008 02:01:05 +0000 (02:01 +0000)
modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua

index 35c85c6..7873842 100644 (file)
@@ -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
        ) .. ")"