浏览代码

convert graphite epoch to ms

ryan 7 年之前
父节点
当前提交
5ca972542b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/api/annotations.go

+ 1 - 1
pkg/api/annotations.go

@@ -156,7 +156,7 @@ func PostGraphiteAnnotation(c *m.ReqContext, cmd dtos.PostGraphiteAnnotationsCmd
 	item := annotations.Item{
 		OrgId:  c.OrgId,
 		UserId: c.UserId,
-		Epoch:  cmd.When,
+		Epoch:  cmd.When * 1000,
 		Text:   text,
 		Tags:   tagsArray,
 	}