From 5c03d681b2f28adc4168785a399a087270983c29 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 16 Sep 2008 02:01:05 +0000 Subject: [PATCH] * luci-0.8: backport second fstab fix --- modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua index 35c85c696..7873842f8 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua @@ -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 ) .. ")" -- 2.25.1