From 039ef1f4deba725d3591b159bbc9569885d68131 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Sat, 30 Nov 2019 19:30:23 +0200 Subject: [PATCH] luci-app-statistics: update misleading load view Fixes: #3301 During my tests and developing with the collectd and so luci-app-statistics I noticed that the values displayed in the Y-axis are misleading, because probably the individual values are added together in each case. So the view is not corrected. Signed-off-by: Florian Eckert (cherry picked from commit b50974a20c9dac0d6b8b479d2e6b54b3c5703ab6) Signed-off-by: Hannu Nyman --- .../statistics/rrdtool/definitions/load.lua | 21 ++++++++++++++++--- 1 file 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 + } } } } -- 2.25.1