refactor: format history points timestamp

This commit is contained in:
710leo 2021-07-10 02:42:57 +08:00
parent 477cac6ca9
commit 473239cc9a
1 changed files with 2 additions and 1 deletions

View File

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