SmartAudio/package/luci/luci-app-statistics/luasrc/model/cbi/luci_statistics/cpu.lua

16 lines
497 B
Lua
Raw Normal View History

2018-07-13 01:31:50 +00:00
-- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
m = Map("luci_statistics",
translate("CPU Plugin Configuration"),
translate("The cpu plugin collects basic statistics about the processor usage."))
-- collectd_cpu config section
s = m:section( NamedSection, "collectd_cpu", "luci_statistics" )
-- collectd_cpu.enable
enable = s:option( Flag, "enable", translate("Enable this plugin") )
enable.default = 0
return m