uptime.lua 756 B

123456789101112131415161718192021222324252627
  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. module("luci.statistics.rrdtool.definitions.uptime", package.seeall)
  9. function rrdargs( graph, plugin, plugin_instance, dtype )
  10. return {
  11. title = "%H: Uptime", vlabel = "seconds",
  12. number_format = "%5.0lf%s", data = {
  13. types = { "uptime" },
  14. options = {
  15. uptime = { title = "Uptime %di", noarea = true }
  16. }
  17. }
  18. }
  19. end