InfluxDB: fixed annotations, broken after switch to millisecond resolution, Fixes #1061

This commit is contained in:
Torkel Ödegaard 2014-11-17 07:09:21 +01:00
parent bde138177d
commit 02e1ac12b2

View File

@ -69,6 +69,7 @@ function (_) {
p.getAnnotations = function () { p.getAnnotations = function () {
var list = []; var list = [];
var self = this; var self = this;
console.log(this.seriesList);
_.each(this.seriesList, function (series) { _.each(this.seriesList, function (series) {
var titleCol = null; var titleCol = null;
@ -88,7 +89,7 @@ function (_) {
_.each(series.points, function (point) { _.each(series.points, function (point) {
var data = { var data = {
annotation: self.annotation, annotation: self.annotation,
time: point[timeCol] * 1000, time: point[timeCol],
title: point[titleCol], title: point[titleCol],
tags: point[tagsCol], tags: point[tagsCol],
text: point[textCol] text: point[textCol]