refactor: format history points timestamp
This commit is contained in:
parent
477cac6ca9
commit
473239cc9a
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue