Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…abbix into hotfix/ack-severity-color
  • Loading branch information
Arnis Civciss committed Jan 13, 2020
2 parents 2cf5262 + fe0c5cf commit 16c5d95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ First, [configure](https://alexanderzobnin.github.io/grafana-zabbix/configuratio
- Need additional support? Contact me for details [[email protected]](mailto:[email protected])

---
:copyright: 2015-2019 Alexander Zobnin [email protected]
:copyright: 2015-2020 Alexander Zobnin [email protected]

Licensed under the Apache 2.0 License
8 changes: 5 additions & 3 deletions src/datasource-zabbix/dataProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ function aggregateWrapper(groupByCallback, interval, datapoints) {
}

function percentile(interval, n, datapoints) {
var flattenedPoints = ts.flattenDatapoints(datapoints);
var groupByCallback = _.partial(PERCENTILE, n);
return groupBy(flattenedPoints, interval, groupByCallback);
const flattenedPoints = ts.flattenDatapoints(datapoints);
// groupBy_perf works with sorted series only
const sortedPoints = ts.sortByTime(flattenedPoints);
let groupByCallback = _.partial(PERCENTILE, n);
return groupBy(sortedPoints, interval, groupByCallback);
}

function timeShift(interval, range) {
Expand Down

0 comments on commit 16c5d95

Please sign in to comment.