git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
7dfe909
)
* luci/admin-full: fix another possible nil value
author
Jo-Philipp Wich
<redacted>
Tue, 16 Sep 2008 02:00:16 +0000
(
02:00
+0000)
committer
Jo-Philipp Wich
<redacted>
Tue, 16 Sep 2008 02:00:16 +0000
(
02:00
+0000)
modules/admin-full/luasrc/model/cbi/admin_system/fstab.lua
patch
|
blob
|
history
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 35c85c696916d7fee349f6bcecf1c5fd9be4fcc7..7873842f817418e865dced5cf7571658e289196d 100644
(file)
--- 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
) .. ")"
git clone https://git.99rst.org/PROJECT