Support for collectd-mod-contextswitch
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / contextswitch.lua
1 -- Licensed to the public under the Apache License 2.0.
2
3 m = Map("luci_statistics",
4         translate("CPU Context Switches Plugin Configuration"),
5         translate("This plugin collects statistics about the processor context switches."))
6
7 -- collectd_contextswitch config section
8 s = m:section( NamedSection, "collectd_contextswitch", "luci_statistics" )
9
10 -- collectd_contextswitch.enable
11 enable = s:option( Flag, "enable", translate("Enable this plugin") )
12 enable.default = 0
13
14 return m