4c52fc78112d9073446e7cefb7f6865b6898c92b
2 * Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
3 * Licensed to the public under the Apache License 2.0.
8 return L
.Class
.extend({
11 rrdargs: function(graph
, host
, plugin
, plugin_instance
, dtype
) {
15 title
: "%H: Memory usage",
17 number_format
: "%5.1lf%s",
19 alt_autoscale_max
: true,
52 title
: "%H: Memory usage",
54 number_format
: "%5.1lf%%",
56 alt_autoscale_max
: true,
87 var types
= graph
.dataTypes(host
, plugin
, plugin_instance
);
89 for (var i
= 0; i
< types
.length
; i
++)
90 if (types
[i
] == 'percent')
92 else if (types
[i
] == 'memory')