Merge pull request #2583 from TDT-AG/pr/20180227-luci-theme-material
[oweals/luci.git] / applications / luci-app-statistics / luasrc / statistics / rrdtool / definitions / cpufreq.lua
1 -- Licensed to the public under the Apache License 2.0.
2
3 module("luci.statistics.rrdtool.definitions.cpufreq",package.seeall)
4
5 function item()
6         return luci.i18n.translate("CPU Frequency")
7 end
8
9 function rrdargs( graph, plugin, plugin_instance, dtype )
10
11         return {
12                 title = "%H: Processor frequency",
13                 alt_autoscale = true,
14                 vlabel = "Frequency (Hz)",
15                 number_format = "%3.2lf%s",
16                 data = {
17                         sources = {
18                                 cpufreq = { "" }
19                         },
20                         options = {
21                                 cpufreq_0 = { color = "ff0000", title = "Core 0", noarea=true, overlay=true },
22                                 cpufreq_1 = { color = "0000ff", title = "Core 1", noarea=true, overlay=true },
23                                 cpufreq_2 = { color = "00ff00", title = "Core 2", noarea=true, overlay=true },
24                                 cpufreq_3 = { color = "00ffff", title = "Core 3", noarea=true, overlay=true }
25                         }
26                 }
27         }
28 end
29