This is an automated email from the ASF dual-hosted git repository.

miao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new c69ff946007 Fix the display milliseconds issue with the Grafana plugin 
(#10002)
c69ff946007 is described below

commit c69ff9460070e9ff1bd8235f75a89d67955a070e
Author: CloudWise-Lukemiao 
<[email protected]>
AuthorDate: Wed May 31 22:03:28 2023 +0800

    Fix the display milliseconds issue with the Grafana plugin (#10002)
    
    Co-authored-by: Cloudwise_Luke <[email protected]>
---
 iotdb-connector/grafana-plugin/pkg/plugin/plugin.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iotdb-connector/grafana-plugin/pkg/plugin/plugin.go 
b/iotdb-connector/grafana-plugin/pkg/plugin/plugin.go
index 89334a9dd35..cb9800e268a 100644
--- a/iotdb-connector/grafana-plugin/pkg/plugin/plugin.go
+++ b/iotdb-connector/grafana-plugin/pkg/plugin/plugin.go
@@ -304,7 +304,7 @@ func (d *IoTDBDataSource) query(cxt context.Context, pCtx 
backend.PluginContext,
                }
                times := make([]time.Time, len(queryDataResp.Timestamps))
                for c := 0; c < len(queryDataResp.Timestamps); c++ {
-                       times[c] = time.Unix(queryDataResp.Timestamps[c]/1000, 
0)
+                       times[c] = 
time.Unix(0,queryDataResp.Timestamps[c]*1000000)
                }
                values := recoverType(queryDataResp.Values[i])
                frame.Fields = append(frame.Fields,

Reply via email to