Merge branch 'ms-resolution'

This commit is contained in:
Alexander Zobnin
2017-03-28 19:49:20 +03:00
8 changed files with 11 additions and 8 deletions

View File

@@ -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 {

View File

@@ -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)
];
}