modules/admin-mini: fix the same issue in admin-mini
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 26 Jul 2009 22:39:21 +0000 (22:39 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 26 Jul 2009 22:39:21 +0000 (22:39 +0000)
modules/admin-mini/luasrc/model/cbi/mini/system.lua

index fa23b7c..4ef97e4 100644 (file)
@@ -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,
  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,
   100 * membuffers / memtotal,
-  translate("mem_buffered") or "",
+  tostring(translate("mem_buffered", "")),
   100 * memfree / memtotal,
   100 * memfree / memtotal,
-  translate("mem_free") or "")
+  tostring(translate("mem_free", ""))
 
 s:option(DummyValue, "_systime", translate("m_i_systemtime")).value =
  os.date("%c")
 
 s:option(DummyValue, "_systime", translate("m_i_systemtime")).value =
  os.date("%c")