luci-app-statistics: fix datasource selection in graph rendering
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
d8b2e0a95e
commit
eec30a2b7d
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ return L.Class.extend({
|
||||||
noarea: dopts.noarea || false,
|
noarea: dopts.noarea || false,
|
||||||
title: dopts.title || null,
|
title: dopts.title || null,
|
||||||
weight: dopts.weight || (dopts.negweight ? -+data_instances[j] : null) || (dopts.posweight ? +data_instances[j] : null) || 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],
|
type: data_types[i],
|
||||||
instance: data_instances[j],
|
instance: data_instances[j],
|
||||||
index: _sources.length + 1,
|
index: _sources.length + 1,
|
||||||
|
|
Loading…
Reference in a new issue