luci-0.11: merge r9571 - r9622
[project/luci.git] / applications / luci-statistics / luasrc / model / cbi / luci_statistics / cpu.lua
1 --[[
2
3 Luci configuration model for statistics - collectd cpu plugin configuration
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 ]]--
15
16 m = Map("luci_statistics",
17 translate("CPU Plugin Configuration"),
18 translate("The cpu plugin collects basic statistics about the processor usage."))
19
20 -- collectd_cpu config section
21 s = m:section( NamedSection, "collectd_cpu", "luci_statistics" )
22
23 -- collectd_cpu.enable
24 enable = s:option( Flag, "enable", translate("Enable this plugin") )
25 enable.default = 0
26
27 return m