Fix timestamp handling, restores testbot/matching test

This commit is contained in:
Jeff Miccolis 2016-03-30 09:45:48 -04:00 committed by Patrick Niklaus
parent c7f3645fe2
commit 08cb6d1f63
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ module.exports = function () {
trace.push(node);
}
if (row.timestamps) {
timestamps = row.timestamps.split(' ').filter(s => !!s).map(t => parseInt(t));
timestamps = row.timestamps.split(' ').filter(s => !!s).map(t => parseInt(t, 10));
}
got.trace = row.trace;
this.requestMatching(trace, timestamps, params, afterRequest);

View File

@ -110,7 +110,7 @@ module.exports = function () {
params.coordinates = encodeWaypoints(waypoints);
if (timestamps.length) {
params.timestamps = timestamps.join(',');
params.timestamps = timestamps.join(';');
}
return this.requestPath('match', params, callback);