Add support for collectd-mod-uptime to luci-statistics
[project/luci.git] / applications / luci-statistics / luasrc / statistics / rrdtool / definitions / 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 module("luci.statistics.rrdtool.definitions.uptime", package.seeall)
13
14 function rrdargs( graph, plugin, plugin_instance, dtype )
15
16         return {
17                 title = "%H: Uptime", vlabel = "seconds",
18                 number_format = "%5.0lf%s", data = {
19                         types = { "uptime" },
20                         options = {
21                                 uptime = { title = "Uptime %di", noarea = true }
22                         }
23                 }
24         }
25
26 end
27