luci-app-olsr: handle empty result for non-status tables
[oweals/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / memory.lua
1 -- Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
2 -- Licensed to the public under the Apache License 2.0.
3
4 m = Map("luci_statistics",
5         translate("Memory Plugin Configuration"),
6         translate("The memory plugin collects statistics about the memory usage."))
7
8 s = m:section( NamedSection, "collectd_memory", "luci_statistics" )
9
10 enable = s:option( Flag, "enable", translate("Enable this plugin") )
11 enable.default = 0
12
13 return m