From 473239cc9ad5a048b213ef6556e1377c1d1d2b78 Mon Sep 17 00:00:00 2001 From: 710leo <710leo@gmail.com> Date: Sat, 10 Jul 2021 02:42:57 +0800 Subject: [PATCH] refactor: format history points timestamp --- judge/query.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/judge/query.go b/judge/query.go index 16979f8e..e0077035 100644 --- a/judge/query.go +++ b/judge/query.go @@ -45,7 +45,8 @@ func Query(reqs *vos.DataQueryParam) []*vos.HPoint { //裁剪掉多余的点 for _, i := range fD.Values { - if i.Timestamp/1000000000 == 1000 { + //将毫秒改为秒 + if i.Timestamp/1000000000 > 1 { i.Timestamp = i.Timestamp / 1000 } -- GitLab