memory.lua 606 B

123456789101112131415161718192021
  1. --[[
  2. Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. ]]--
  8. m = Map("luci_statistics",
  9. translate("Memory Plugin Configuration"),
  10. translate("The memory plugin collects statistics about the memory usage."))
  11. s = m:section( NamedSection, "collectd_memory", "luci_statistics" )
  12. enable = s:option( Flag, "enable", translate("Enable this plugin") )
  13. enable.default = 0
  14. return m