summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-freifunk/luasrc/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-02-09 12:15:06 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-02-09 12:15:06 +0100
commit240458ea8a5353683fab48eb6e10b65779985ab8 (patch)
tree7897379e2d7d83694b6a0c0ae04cd6252346013c /modules/luci-mod-freifunk/luasrc/view
parent993cf1222998a7e3e78ed8e81efb91eaf2313d00 (diff)
luci-mod-freifunk: fix public status page
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'modules/luci-mod-freifunk/luasrc/view')
-rw-r--r--modules/luci-mod-freifunk/luasrc/view/freifunk/public_status.htm8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/luci-mod-freifunk/luasrc/view/freifunk/public_status.htm b/modules/luci-mod-freifunk/luasrc/view/freifunk/public_status.htm
index 72bd136c5e..42a58f9dd3 100644
--- a/modules/luci-mod-freifunk/luasrc/view/freifunk/public_status.htm
+++ b/modules/luci-mod-freifunk/luasrc/view/freifunk/public_status.htm
@@ -23,12 +23,12 @@ local load = string.format("%.2f, %.2f, %.2f", loads[1] / 65535.0, loads[2] / 65
local mem = string.format(
"%.2f MB (%.2f %s, %.2f %s, %.2f %s)",
- memory.total / 1024 / 1024,
- (memory.total - memory.free) / 1024 / 1024,
+ meminfo.total / 1024 / 1024,
+ (meminfo.total - meminfo.free) / 1024 / 1024,
tostring(i18n.translate("used")),
- memory.free / 1024 / 1024,
+ meminfo.free / 1024 / 1024,
tostring(i18n.translate("free")),
- memory.buffered / 1024 / 1024,
+ meminfo.buffered / 1024 / 1024,
tostring(i18n.translate("buffered"))
)