X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-statistics%2Fluasrc%2Fmodel%2Fcbi%2Fluci_statistics%2Fcontextswitch.lua;fp=applications%2Fluci-app-statistics%2Fluasrc%2Fmodel%2Fcbi%2Fluci_statistics%2Fcontextswitch.lua;h=7ae6b24ba10cb0f11fbd38b57c195ba738eab39e;hp=0000000000000000000000000000000000000000;hb=5bf636732efab13fdd92dabfd746cafb156dd4f6;hpb=a83f0edec21ddd562636e61fd8dcf2fee5b97632 diff --git a/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/contextswitch.lua b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/contextswitch.lua new file mode 100644 index 000000000..7ae6b24ba --- /dev/null +++ b/applications/luci-app-statistics/luasrc/model/cbi/luci_statistics/contextswitch.lua @@ -0,0 +1,14 @@ +-- Licensed to the public under the Apache License 2.0. + +m = Map("luci_statistics", + translate("CPU Context Switches Plugin Configuration"), + translate("This plugin collects statistics about the processor context switches.")) + +-- collectd_contextswitch config section +s = m:section( NamedSection, "collectd_contextswitch", "luci_statistics" ) + +-- collectd_contextswitch.enable +enable = s:option( Flag, "enable", translate("Enable this plugin") ) +enable.default = 0 + +return m