]> git.99rst.org Git - openwrt-luci.git/blob
c764897b546d0a14dbf19e39473fd90e1ac4628d
[openwrt-luci.git] /
1 /*
2 Copyright 2013 Thomas Endt <tmo26@gmx.de>
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9 */
10
11 'use strict';
12
13 return L.Class.extend({
14 title: _('Uptime'),
15
16 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
17 return {
18 title: "%H: Uptime",
19 vlabel: "seconds",
20 number_format: "%5.0lf%s",
21 data: {
22 types: [ "uptime" ],
23 options: {
24 uptime: {
25 title: "Uptime %di",
26 noarea: true
27 }
28 }
29 }
30 };
31 }
32 });
git clone https://git.99rst.org/PROJECT