2b6ea226a888b1eca510407b4c8bf34878e3fde6
[oweals/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 'require baseclass';
13
14 return baseclass.extend({
15         title: _('Uptime'),
16
17         rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
18                 return {
19                         title: "%H: Uptime",
20                         vlabel: "seconds",
21                         number_format: "%5.0lf%s",
22                         data: {
23                                 types: [ "uptime" ],
24                                 options: {
25                                         uptime: {
26                                                 title: "Uptime %di",
27                                                 noarea: true
28                                         }
29                                 }
30                         }
31                 };
32         }
33 });