1 /* Licensed to the public under the Apache License 2.0. */
6 return baseclass
.extend({
7 title
: _('Disk Space Usage'),
9 rrdargs: function(graph
, host
, plugin
, plugin_instance
, dtype
) {
11 title
: "%H: Disk space usage on %pi",
13 number_format
: "%5.1lf%sB",
17 df_complex
: [ "free", "used", "reserved" ]
33 df_complex_reserved
: {
43 title
: "%H: Disk space usage on %pi",
45 number_format
: "%5.2lf %%",
49 percent_bytes
: [ "free", "used", "reserved" ]
65 percent_bytes_reserved
: {
74 var types
= graph
.dataTypes(host
, plugin
, plugin_instance
);
76 for (var i
= 0; i
< types
.length
; i
++)
77 if (types
[i
] == 'percent_bytes')
78 p
.push(percent_bytes
);
79 else if (types
[i
] == 'df_complex')