Permalink
Browse files

Merge pull request #29 from Incisive/master

Fix for scientific notation metric results
  • Loading branch information...
2 parents bdd91be + 7981593 commit 08488cbfd017946c9222df4e980146f79a92b24e @ncb000gt committed Nov 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ga.js
View
@@ -160,7 +160,7 @@ GA.prototype.get = function(options, cb) {
var object_metric = {};
for (var j=0; j<metrics.length; j++){
- object_metric[metrics[j].name] = parseInt(parsed_data.rows[i][metric_indexes[j]], 10);
+ object_metric[metrics[j].name] = parseFloat(parsed_data.rows[i][metric_indexes[j]]);
}
entry.metrics.push(object_metric);

0 comments on commit 08488cb

Please sign in to comment.