5dd446f3110e12425bed36f656fc6bc6d08079a1
[project/luci.git] / applications / luci-statistics / luasrc / statistics / rrdtool / definitions / processes / ps_state.lua
1 module("luci.statistics.rrdtool.definitions.processes.ps_state", package.seeall)
2
3 function rrdargs( graph, plugin, plugin_instance, dtype )
4
5         return {
6                 data = {
7                         instances = {
8                                 ps_state = {
9                                         "sleeping", "running", "paging", "blocked", "stopped", "zombies"
10                                 }
11                         },
12
13                         options = {
14                                 ps_state_sleeping = { color = "0000ff" },
15                                 ps_state_running  = { color = "008000" },
16                                 ps_state_paging   = { color = "ffff00" },
17                                 ps_state_blocked  = { color = "ff5000" },
18                                 ps_state_stopped  = { color = "555555" },
19                                 ps_state_zombies  = { color = "ff0000" }
20                         }
21                 }
22         }
23 end