summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2019-11-14 15:22:14 +0100
committerGitHub <noreply@github.com>2019-11-14 15:22:14 +0100
commitc1f41f2919f079b82782c2ef282c834b60106621 (patch)
treeb5d855607170286af76d026f06149df1a5d58e2d
parent956fd4a579084b486d7b7d78962a49a0c5aa1c7a (diff)
parentb50974a20c9dac0d6b8b479d2e6b54b3c5703ab6 (diff)
Merge pull request #3310 from TDT-AG/pr/20191114-luci-app-statistics
luci-app-statistics: update misleading load view
-rw-r--r--applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/load.lua21
1 files changed, 18 insertions, 3 deletions
diff --git a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/load.lua b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/load.lua
index b06c8c414..2caf6a0b1 100644
--- a/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/load.lua
+++ b/applications/luci-app-statistics/luasrc/statistics/rrdtool/definitions/load.lua
@@ -19,9 +19,24 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
},
options = {
- load__shortterm = { color = "ff0000", title = "1 minute", noarea = true },
- load__midterm = { color = "ff6600", title = "5 minutes", noarea = true },
- load__longterm = { color = "ffaa00", title = "15 minutes", noarea = true }
+ load__shortterm = {
+ color = "ff0000",
+ title = "1 minute",
+ noarea = true,
+ weight = 3
+ },
+ load__midterm = {
+ color = "ff6600",
+ title = "5 minutes",
+ overlay = true,
+ weight = 1
+ },
+ load__longterm = {
+ color = "ffaa00",
+ title = "15 minutes",
+ overlay = true,
+ weight = 2
+ }
}
}
}