modules/freifunk: Add profile for Bern. (#169)
[project/luci.git] / modules / freifunk / luasrc / model / cbi / freifunk / public_status.lua
index 7cf17da..8075485 100644 (file)
@@ -27,11 +27,11 @@ f:field(DummyValue, "_memtotal", translate("Memory")).value =
 string.format("%.2f MB (%.0f%% %s, %.0f%% %s, %.0f%% %s)",
        tonumber(memtotal) / 1024,
        100 * memcached / memtotal,
-       tostring(translate("mem_cached", "")),
+       tostring(translate("cached")),
        100 * membuffers / memtotal,
-       tostring(translate("mem_buffered", "")),
+       tostring(translate("buffered")),
        100 * memfree / memtotal,
-       tostring(translate("mem_free", ""))
+       tostring(translate("free"))
 )
 
 f:field(DummyValue, "_systime", translate("Local Time")).value =
@@ -85,7 +85,7 @@ end
 
 protocol = s:option(DummyValue, "_mode", translate("Protocol"))
 function protocol.cfgvalue(self, section)
-       local mode = wireless[self.map:get(section, "device")].mode
+       local mode = wireless[self.map:get(section, "device")].hwmode
        return mode and "802." .. mode
 end