diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-26 22:37:24 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-26 22:37:24 +0000 |
commit | 5f70d9f4f43a8275a6e960b7cff6f8c140b332ac (patch) | |
tree | 14c4a4f843203f3343fea5d32901eb7552331aa4 /modules | |
parent | 96bc583cfcca29e114897f51153ee82422a4a1a4 (diff) |
modules/admin-full: fix udata vs. string in system.lua model
Diffstat (limited to 'modules')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_system/system.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua index b3c2a4e86c..1d35dee7f6 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_system/system.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_system/system.lua @@ -35,11 +35,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") |