summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-mini/luasrc/model
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-07-26 22:39:21 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-07-26 22:39:21 +0000
commit2c3d33006cbe4b9d65d4c9922c44f548e6cd43b6 (patch)
treee859d6147e75dbd672d2cd3aaeda113d584dd40e /modules/admin-mini/luasrc/model
parent5f70d9f4f43a8275a6e960b7cff6f8c140b332ac (diff)
modules/admin-mini: fix the same issue in admin-mini
Diffstat (limited to 'modules/admin-mini/luasrc/model')
-rw-r--r--modules/admin-mini/luasrc/model/cbi/mini/system.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/admin-mini/luasrc/model/cbi/mini/system.lua b/modules/admin-mini/luasrc/model/cbi/mini/system.lua
index fa23b7c13..4ef97e48e 100644
--- 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,
- translate("mem_cached") or "",
+ tostring(translate("mem_cached", "")),
100 * membuffers / memtotal,
- translate("mem_buffered") or "",
+ tostring(translate("mem_buffered", "")),
100 * memfree / memtotal,
- translate("mem_free") or "")
+ tostring(translate("mem_free", ""))
s:option(DummyValue, "_systime", translate("m_i_systemtime")).value =
os.date("%c")