Add support for collectd-mod-uptime to luci-statistics
[project/luci.git] / applications / luci-statistics / luasrc / model / cbi / luci_statistics / uptime.lua
1 --[[
2
3 Copyright 2013 Thomas Endt <tmo26@gmx.de>
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9         http://www.apache.org/licenses/LICENSE-2.0
10 ]]--
11
12 m = Map("luci_statistics",
13         translate("Uptime Plugin Configuration"),
14         translate("The uptime plugin collects statistics about the uptime of the system."))
15
16 s = m:section( NamedSection, "collectd_uptime", "luci_statistics" )
17
18 enable = s:option( Flag, "enable", translate("Enable this plugin") )
19 enable.default = 0
20
21 return m
22