Replace native map() and forEach() methods by lodash.
This commit is contained in:
4
dist/test/datasource-zabbix/dataProcessor.js
vendored
4
dist/test/datasource-zabbix/dataProcessor.js
vendored
@@ -275,14 +275,14 @@ function findNearestLeft(series, point) {
|
||||
|
||||
function timeShift(interval, range) {
|
||||
var shift = utils.parseTimeShiftInterval(interval) / 1000;
|
||||
return range.map(function (time) {
|
||||
return _lodash2.default.map(range, function (time) {
|
||||
return time - shift;
|
||||
});
|
||||
}
|
||||
|
||||
function unShiftTimeSeries(interval, datapoints) {
|
||||
var unshift = utils.parseTimeShiftInterval(interval);
|
||||
return datapoints.map(function (dp) {
|
||||
return _lodash2.default.map(datapoints, function (dp) {
|
||||
return [dp[0], dp[1] + unshift];
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user