modules/freifunk: fix same problem
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 26 Jul 2009 22:43:51 +0000 (22:43 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 26 Jul 2009 22:43:51 +0000 (22:43 +0000)
modules/freifunk/luasrc/model/cbi/freifunk/public_status.lua

index 56e956363e6b6fab0a5835f25b56f6cf8e5b23d4..2192697fdec8cb042b952ab6174bc67c24bdb0d3 100644 (file)
@@ -27,11 +27,11 @@ f:field(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", ""))
 
 f:field(DummyValue, "_systime", translate("m_i_systemtime")).value =
 os.date("%c")