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:
5f70d9f
)
modules/admin-mini: fix the same issue in admin-mini
author
Jo-Philipp Wich
<redacted>
Sun, 26 Jul 2009 22:39:21 +0000
(22:39 +0000)
committer
Jo-Philipp Wich
<redacted>
Sun, 26 Jul 2009 22:39:21 +0000
(22:39 +0000)
modules/admin-mini/luasrc/model/cbi/mini/system.lua
patch
|
blob
|
history
diff --git
a/modules/admin-mini/luasrc/model/cbi/mini/system.lua
b/modules/admin-mini/luasrc/model/cbi/mini/system.lua
index fa23b7c138f8da9393e5b93cdc1c5f34e4afacd2..4ef97e48e1f64efdea86f55210ecf350efeb636c 100644
(file)
--- a/
modules/admin-mini/luasrc/model/cbi/mini/system.lua
+++ b/
modules/admin-mini/luasrc/model/cbi/mini/system.lua
@@
-38,11
+38,11
@@
s:option(DummyValue, "_memtotal", translate("m_i_memory")).value =
string.format("%.2f MB (%.0f%% %s, %.0f%% %s, %.0f%% %s)",
tonumber(memtotal) / 1024,
100 * memcached / memtotal,
- t
ranslate("mem_cached") or ""
,
+ t
ostring(translate("mem_cached", ""))
,
100 * membuffers / memtotal,
- t
ranslate("mem_buffered") or ""
,
+ t
ostring(translate("mem_buffered", ""))
,
100 * memfree / memtotal,
- t
ranslate("mem_free") or ""
)
+ t
ostring(translate("mem_free", "")
)
s:option(DummyValue, "_systime", translate("m_i_systemtime")).value =
os.date("%c")
git clone https://git.99rst.org/PROJECT