Browse files

Fix for scientific notation metric results

Changed from parseInt to parseFloat
  • Loading branch information...
1 parent bdd91be commit 7981593c58b7fb8067135d3dd5c53287a18cc7f9 Ryan Smith committed Nov 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ga.js
View
2 lib/ga.js
@@ -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 7981593

Please sign in to comment.