Merge branch 'ms-resolution'
This commit is contained in:
2
dist/datasource-zabbix/datasource.js
vendored
2
dist/datasource-zabbix/datasource.js
vendored
@@ -446,7 +446,7 @@ System.register(['lodash', 'app/core/utils/datemath', './utils', './migrations',
|
||||
value = extractText(point.value, target.textFilter, target.useCaptureGroups);
|
||||
}
|
||||
|
||||
return [value, point.clock * 1000];
|
||||
return [value, point.clock * 1000 + Math.round(point.ns / 1000000)];
|
||||
});
|
||||
});
|
||||
} else {
|
||||
|
||||
2
dist/datasource-zabbix/datasource.js.map
vendored
2
dist/datasource-zabbix/datasource.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/datasource-zabbix/responseHandler.js
vendored
2
dist/datasource-zabbix/responseHandler.js
vendored
@@ -71,7 +71,7 @@ System.register(['lodash'], function (_export, _context) {
|
||||
}
|
||||
}function convertHistoryPoint(point) {
|
||||
// Value must be a number for properly work
|
||||
return [Number(point.value), point.clock * 1000];
|
||||
return [Number(point.value), point.clock * 1000 + Math.round(point.ns / 1000000)];
|
||||
}
|
||||
|
||||
function convertTrendPoint(valueType, point) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
2
dist/test/datasource-zabbix/datasource.js
vendored
2
dist/test/datasource-zabbix/datasource.js
vendored
@@ -304,7 +304,7 @@ var ZabbixAPIDatasource = function () {
|
||||
value = extractText(point.value, target.textFilter, target.useCaptureGroups);
|
||||
}
|
||||
|
||||
return [value, point.clock * 1000];
|
||||
return [value, point.clock * 1000 + Math.round(point.ns / 1000000)];
|
||||
});
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -80,7 +80,7 @@ function handleSLAResponse(itservice, slaProperty, slaObject) {
|
||||
|
||||
function convertHistoryPoint(point) {
|
||||
// Value must be a number for properly work
|
||||
return [Number(point.value), point.clock * 1000];
|
||||
return [Number(point.value), point.clock * 1000 + Math.round(point.ns / 1000000)];
|
||||
}
|
||||
|
||||
function convertTrendPoint(valueType, point) {
|
||||
|
||||
@@ -247,7 +247,10 @@ class ZabbixAPIDatasource {
|
||||
value = extractText(point.value, target.textFilter, target.useCaptureGroups);
|
||||
}
|
||||
|
||||
return [value, point.clock * 1000];
|
||||
return [
|
||||
value,
|
||||
point.clock * 1000 + Math.round(point.ns / 1000000)
|
||||
];
|
||||
});
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -72,7 +72,7 @@ function convertHistoryPoint(point) {
|
||||
// Value must be a number for properly work
|
||||
return [
|
||||
Number(point.value),
|
||||
point.clock * 1000
|
||||
point.clock * 1000 + Math.round(point.ns / 1000000)
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user