Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. module("luci.statistics.rrdtool.definitions.exec", package.seeall)
  2.  
  3. function rrdargs( graph, plugin, plugin_instance )
  4.  
  5. --
  6. -- bitrate diagram
  7. --
  8. local bitrate = {
  9. title = "%H: Average phy rate on %pi",
  10. vlabel = "MBit/s",
  11. number_format = "%5.1lf%sBit/s",
  12. data = {
  13. types = { "bitrate" },
  14. options = {
  15. bitrate = {
  16. title = "Rate",
  17. color = "00ff00"
  18. }
  19. }
  20. }
  21. }
  22.  
  23. local powerlan = {
  24. title = "%H: Rx and Tx at dLAN 1200+ WiFi ac",
  25. vlabel = "dBm",
  26. number_format = "%5.1lf%sBit/s",
  27. data = {
  28. types = { "powerlan_rx", "powerlan_tx" },
  29. options = {
  30. powerlan_rx = {
  31. title = "RX",
  32. overlay = true,
  33. color = "0000ff"
  34. },
  35. powerlan_tx = {
  36. title = "TX",
  37. overlay = true,
  38. color = "ff0000"
  39. }
  40. }
  41. }
  42. }
  43.  
  44. return { bitrate, powerlan }
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement