Explorar el Código

Use ms rather than second precision

Ryan McKinley hace 9 años
padre
commit
7958615097
Se han modificado 1 ficheros con 1 adiciones y 6 borrados
  1. 1 6
      public/app/plugins/datasource/influxdb/datasource.ts

+ 1 - 6
public/app/plugins/datasource/influxdb/datasource.ts

@@ -275,12 +275,7 @@ export default class InfluxDatasource {
       }
       }
       date = dateMath.parse(date, roundUp);
       date = dateMath.parse(date, roundUp);
     }
     }
-
-    var secs = date.valueOf() / 1000;
-    if (roundUp) {
-      secs += 1;
-    }
-    return secs.toFixed(0) + 's';
+    return date.valueOf() + 'ms';
   }
   }
 }
 }