diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-02-20 13:48:00 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-02-20 13:48:20 +0100 |
commit | 4b1a43fc86931a297ed78564edd497f328e1a09b (patch) | |
tree | c3b13a2734f891b8c141d70f02f8cb398aeddbb8 /applications/luci-app-statistics | |
parent | b23a63f554ef073c4ba212d6e88009ed433adbf5 (diff) |
luci-app-statistics: fix data source ordering
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-statistics')
-rw-r--r-- | applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js | 4 |
1 files changed, 2 insertions, 2 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 fb3eeebd9b..7949886f4e 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 @@ -369,7 +369,7 @@ return L.Class.extend({ /* is first source in stack or overlay source: source_stk = source_nnl */ if (prev == null || source.overlay) { /* 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) _args.push( '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, y = b.weight || b.index || 0; - return +x < +y; + return +x - +y; }); /* define colors in order */ |