8dc3cc75fba7cb905c6af7d517351198b16fec2d
[openwrt-luci.git] /
1 /* Licensed to the public under the Apache License 2.0. */
2
3 'use strict';
4 'require baseclass';
5
6 return baseclass.extend({
7         title: _('Context Switches'),
8
9         rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
10                 return {
11                         title: "%H: Context switches",
12                         alt_autoscale: true,
13                         vlabel: "Switches/s",
14                         number_format: "%5.0lf",
15                         data: {
16                                 types: [ "contextswitch" ],
17                                 sources: {
18                                         contextswitch: [ "value" ]
19                                 },
20                                 options: {
21                                         contextswitch: { color: "0000ff", title: "Context switches", noarea: true, overlay: true }
22                                 }
23                         }
24                 };
25         }
26 });
git clone https://git.99rst.org/PROJECT