uptime.lua 614 B

12345678910111213141516171819202122
  1. --[[
  2. Copyright 2013 Thomas Endt <tmo26@gmx.de>
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. ]]--
  8. m = Map("luci_statistics",
  9. translate("Uptime Plugin Configuration"),
  10. translate("The uptime plugin collects statistics about the uptime of the system."))
  11. s = m:section( NamedSection, "collectd_uptime", "luci_statistics" )
  12. enable = s:option( Flag, "enable", translate("Enable this plugin") )
  13. enable.default = 0
  14. return m