contextswitch.lua 475 B

1234567891011121314
  1. -- Licensed to the public under the Apache License 2.0.
  2. m = Map("luci_statistics",
  3. translate("CPU Context Switches Plugin Configuration"),
  4. translate("This plugin collects statistics about the processor context switches."))
  5. -- collectd_contextswitch config section
  6. s = m:section( NamedSection, "collectd_contextswitch", "luci_statistics" )
  7. -- collectd_contextswitch.enable
  8. enable = s:option( Flag, "enable", translate("Enable this plugin") )
  9. enable.default = 0
  10. return m