Sfoglia il codice sorgente

fix cloudwatch time error

Mitsuhiro Tanda 10 anni fa
parent
commit
01ec8d0bcb
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      public/app/plugins/datasource/cloudwatch/datasource.js

+ 1 - 1
public/app/plugins/datasource/cloudwatch/datasource.js

@@ -596,7 +596,7 @@ function (angular, _) {
     }
 
     function convertToCloudWatchTime(date) {
-      return date.valueOf() / 1000;
+      return Math.round(date.valueOf() / 1000);
     }
 
     function convertDimensionFormat(dimensions) {