X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=modules%2Fadmin-full%2Fluasrc%2Fmodel%2Fcbi%2Fadmin_system%2Fsystem.lua;h=da51b452d1f59020e7774f1fa98a368adcc6d53e;hp=b3c2a4e86c4f9aacc757588606b5488f4f29585c;hb=d8eb5b292d92b7f26c1b6e554eba4505e923ad35;hpb=438180ead424ad61d2ad47c5f9d4b5da7ec4e1de 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 b3c2a4e86..da51b452d 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,12 @@ 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")