cpu.lua 497 B

123456789101112131415
  1. -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
  2. -- Licensed to the public under the Apache License 2.0.
  3. m = Map("luci_statistics",
  4. translate("CPU Plugin Configuration"),
  5. translate("The cpu plugin collects basic statistics about the processor usage."))
  6. -- collectd_cpu config section
  7. s = m:section( NamedSection, "collectd_cpu", "luci_statistics" )
  8. -- collectd_cpu.enable
  9. enable = s:option( Flag, "enable", translate("Enable this plugin") )
  10. enable.default = 0
  11. return m