8
dist/datasource-zabbix/responseHandler.js
vendored
8
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) {
|
||||
@@ -86,6 +86,12 @@ System.register(['lodash'], function (_export, _context) {
|
||||
case "avg":
|
||||
value = point.value_avg;
|
||||
break;
|
||||
case "sum":
|
||||
value = point.value_sum;
|
||||
break;
|
||||
case "count":
|
||||
value = point.value_count;
|
||||
break;
|
||||
default:
|
||||
value = point.value_avg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user