Merge pull request #1031 from feckert/add_dhcp_to_system_ucitrack
[project/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / contextswitch.lua
1 -- Licensed to the public under the Apache License 2.0.
2
3 module("luci.statistics.rrdtool.definitions.contextswitch",package.seeall)
4
5 function rrdargs( graph, plugin, plugin_instance, dtype )
6
7         return {
8                 title = "%H: Context switches",
9                 alt_autoscale = true,
10                 vlabel = "Switches/s",
11                 number_format = "%5.0lf",
12                 data = {
13                         types = { "contextswitch" },
14                         sources = {
15                                 contextswitch = { "value" }
16                         },
17                         options = {
18                                 contextswitch = { color = "0000ff", title = "Context switches", noarea=true, overlay=true }
19                         }
20                 }
21         }
22 end
23