summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-19 14:28:28 +0100
committerJo-Philipp Wich <jo@mein.io>2020-02-19 14:28:35 +0100
commiteec30a2b7d7a31b9ace08201057fc76fbde57c4b (patch)
tree1de00bc695e2c7eb2d4fe1e4f603ca8804889ed5 /applications/luci-app-statistics/htdocs/luci-static/resources
parentd8b2e0a95efbb00fd7778767619eacdc48df3ccc (diff)
luci-app-statistics: fix datasource selection in graph rendering
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-statistics/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js2
1 files changed, 1 insertions, 1 deletions
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,