]> git.99rst.org Git - openwrt-luci.git/blob
52542a1f846efee22c14cfdfd794dfd23b90f86e
[openwrt-luci.git] /
1 /*
2 * Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
3 * Licensed to the public under the Apache License 2.0.
4 */
5
6 'use strict';
7
8 return L.Class.extend({
9 title: _('Disk Usage'),
10
11 rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
12 return [{
13 title: "%H: Disk I/O operations on %pi",
14 vlabel: "Operations/s",
15 number_format: "%5.1lf%sOp/s",
16
17 data: {
18 types: [ "disk_ops" ],
19 sources: {
20 disk_ops: [ "read", "write" ],
21 },
22
23 options: {
24 disk_ops__read: {
25 title: "Reads",
26 color: "00ff00",
27 flip : false
28 },
29
30 disk_ops__write: {
31 title: "Writes",
32 color: "ff0000",
33 flip : true
34 }
35 }
36 }
37 }, {
38 title: "%H: Disk I/O bandwidth on %pi",
39 vlabel: "Bytes/s",
40 number_format: "%5.1lf%sB/s",
41
42 detail: true,
43
44 data: {
45 types: [ "disk_octets" ],
46 sources: {
47 disk_octets: [ "read", "write" ]
48 },
49 options: {
50 disk_octets__read: {
51 title: "Read",
52 color: "00ff00",
53 flip : false
54 },
55 disk_octets__write: {
56 title: "Write",
57 color: "ff0000",
58 flip : true
59 }
60 }
61 }
62 }];
63 }
64 });
git clone https://git.99rst.org/PROJECT