cpufreq.lua 732 B

12345678910111213141516171819202122232425
  1. -- Licensed to the public under the Apache License 2.0.
  2. module("luci.statistics.rrdtool.definitions.cpufreq",package.seeall)
  3. function rrdargs( graph, plugin, plugin_instance, dtype )
  4. return {
  5. title = "%H: Processor frequency",
  6. alt_autoscale = true,
  7. vlabel = "Frequency (Hz)",
  8. number_format = "%3.2lf%s",
  9. data = {
  10. sources = {
  11. cpufreq = { "" }
  12. },
  13. options = {
  14. cpufreq_0 = { color = "ff0000", title = "Core 0", noarea=true, overlay=true },
  15. cpufreq_1 = { color = "0000ff", title = "Core 1", noarea=true, overlay=true },
  16. cpufreq_2 = { color = "00ff00", title = "Core 2", noarea=true, overlay=true },
  17. cpufreq_3 = { color = "00ffff", title = "Core 3", noarea=true, overlay=true }
  18. }
  19. }
  20. }
  21. end