iotdb-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-iotdb] jixuan1989 opened a new pull request #1150: [IOTDB-636]Grafana connector does not use correct time unit
Date Sat, 02 May 2020 14:36:41 GMT

jixuan1989 opened a new pull request #1150:
URL: https://github.com/apache/incubator-iotdb/pull/1150


   On rel/0.9, the grafana connector uses the time unit like this:
   
   ```
   @Autowired
   public BasicDaoImpl(JdbcTemplate jdbcTemplate) {
     this.jdbcTemplate = jdbcTemplate;
     Properties properties = new Properties();
     String tsPrecision = properties.getProperty("timestamp_precision", "ms");
     switch (tsPrecision) {
       case "us":
         TIMESTAMP_RADIX = 1000;
         break;
       case "ns":
         TIMESTAMP_RADIX = 1000_000;
         break;
       default:
         TIMESTAMP_RADIX = 1;
     }
     logger.info("Use timestamp precision {}", tsPrecision);
   }
   
   ```
   That is to say, it always is "ms"! No configuration file is read!
   
    
   
    


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message