applications/luci-statistics: move all models to the per-plugin level, provide titles...
[project/luci.git] / applications / luci-statistics / luasrc / statistics / rrdtool / definitions / irq.lua
1 --[[
2
3 Luci statistics - irq plugin diagram definition
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id: irq.lua 2276 2008-06-03 23:18:37Z jow $
13
14 ]]--
15
16 module("luci.statistics.rrdtool.definitions.irq", package.seeall)
17
18 function rrdargs( graph, plugin, plugin_instance, dtype )
19
20 return {
21 title = "%H: Interrupts", vlabel = "Issues/s",
22 number_format = "%5.0lf", data = {
23 types = { "irq" },
24 options = {
25 irq = { title = "IRQ %di", noarea = true }
26 }
27 }
28 }
29
30 end