Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module("luci.statistics.rrdtool.definitions.exec", package.seeall)
- function rrdargs( graph, plugin, plugin_instance )
- --
- -- bitrate diagram
- --
- local bitrate = {
- title = "%H: Average phy rate on %pi",
- vlabel = "MBit/s",
- number_format = "%5.1lf%sBit/s",
- data = {
- types = { "bitrate" },
- options = {
- bitrate = {
- title = "Rate",
- color = "00ff00"
- }
- }
- }
- }
- local powerlan = {
- title = "%H: Rx and Tx at dLAN 1200+ WiFi ac",
- vlabel = "dBm",
- number_format = "%5.1lf%sBit/s",
- data = {
- types = { "powerlan_rx", "powerlan_tx" },
- options = {
- powerlan_rx = {
- title = "RX",
- overlay = true,
- color = "0000ff"
- },
- powerlan_tx = {
- title = "TX",
- overlay = true,
- color = "ff0000"
- }
- }
- }
- }
- return { bitrate, powerlan }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement