From: Paul Donald Date: Fri, 22 May 2026 11:38:35 +0000 (+0300) Subject: luci-app-statistics: correctness fixes X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=a90676336daf22d5704398291d60c27f91b56923;p=openwrt-luci.git luci-app-statistics: correctness fixes Signed-off-by: Paul Donald --- 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 f19d44fbbb..5a0e31efc8 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 @@ -266,7 +266,7 @@ return baseclass.extend({ else if (x && y && x[0] != y[0]) return +x[0] - +y[0]; else - return a > b; + return a < b ? -1 : a > b ? 1 : 0; }); },