luci-app-statistics: fix data source ordering
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
b23a63f554
commit
4b1a43fc86
1 changed files with 2 additions and 2 deletions
|
@ -369,7 +369,7 @@ return L.Class.extend({
|
||||||
/* is first source in stack or overlay source: source_stk = source_nnl */
|
/* is first source in stack or overlay source: source_stk = source_nnl */
|
||||||
if (prev == null || source.overlay) {
|
if (prev == null || source.overlay) {
|
||||||
/* create cdef statement for cumulative stack (no NaNs) and also
|
/* create cdef statement for cumulative stack (no NaNs) and also
|
||||||
for display (preserving NaN where no points should be displayed) */
|
for display (preserving NaN where no points should be displayed) */
|
||||||
if (gopts.rrasingle || !gopts.rramax)
|
if (gopts.rrasingle || !gopts.rramax)
|
||||||
_args.push(
|
_args.push(
|
||||||
'CDEF:%s_stk=%s_nnl'.format(source.sname, source.sname),
|
'CDEF:%s_stk=%s_nnl'.format(source.sname, source.sname),
|
||||||
|
@ -634,7 +634,7 @@ return L.Class.extend({
|
||||||
var x = a.weight || a.index || 0,
|
var x = a.weight || a.index || 0,
|
||||||
y = b.weight || b.index || 0;
|
y = b.weight || b.index || 0;
|
||||||
|
|
||||||
return +x < +y;
|
return +x - +y;
|
||||||
});
|
});
|
||||||
|
|
||||||
/* define colors in order */
|
/* define colors in order */
|
||||||
|
|
Loading…
Reference in a new issue