From: Jo-Philipp Wich Date: Wed, 19 Feb 2020 13:28:28 +0000 (+0100) Subject: luci-app-statistics: fix datasource selection in graph rendering X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=eec30a2b7d7a31b9ace08201057fc76fbde57c4b;p=project%2Fluci.git luci-app-statistics: fix datasource selection in graph rendering Signed-off-by: Jo-Philipp Wich --- 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,