Skip to content

Commit

Permalink
use ms instead of m as time precision, 'm' is deprecated and results …
Browse files Browse the repository at this point in the history
…in log warnings from influxdb
  • Loading branch information
nstott committed Jul 29, 2014
1 parent 7e61b76 commit f536f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit f536f84

Please sign in to comment.