From eec30a2b7d7a31b9ace08201057fc76fbde57c4b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 19 Feb 2020 14:28:28 +0100 Subject: [PATCH] luci-app-statistics: fix datasource selection in graph rendering Signed-off-by: Jo-Philipp Wich --- .../htdocs/luci-static/resources/statistics/rrdtool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js index c99d1e6838..fb3eeebd9b 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js @@ -568,7 +568,7 @@ return L.Class.extend({ noarea: dopts.noarea || false, title: dopts.title || null, weight: dopts.weight || (dopts.negweight ? -+data_instances[j] : null) || (dopts.posweight ? +data_instances[j] : null) || null, - ds: data_sources[j], + ds: data_sources[k], type: data_types[i], instance: data_instances[j], index: _sources.length + 1, -- 2.30.2