From f536f849c4e1270b592efd9c83bf72ef1a8d19f1 Mon Sep 17 00:00:00 2001 From: Nick Stott Date: Tue, 29 Jul 2014 09:12:24 -0400 Subject: [PATCH] use ms instead of m as time precision, 'm' is deprecated and results in log warnings from influxdb --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 84b17f1d..a77f3ba1 100644 --- a/index.js +++ b/index.js @@ -176,7 +176,7 @@ InfluxDB.prototype.writeSeries = function(series, options, callback) { var v = typeof values[k] === 'undefined' ? null : values[k]; if(k === 'time' && v instanceof Date) { v = v.valueOf(); - query.time_precision = 'm'; + query.time_precision = 'ms'; } point.push(v); });