Permalink
Browse files

fixed the parseInt calls

  • Loading branch information...
1 parent 539972d commit 1ad308f3ed69707444c4ba19c86affde4a1a19ed @tarekziade tarekziade committed Mar 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 monolith/web/media/lib/monolith.js
@@ -343,10 +343,10 @@ MonolithBase.extend("MonolithAggregate",
$.each(json.facets.facet_histo.entries, function(i, item) {
// XXX why count vs total ?
if (item.hasOwnProperty("total")) {
- var line = {x: x, y: parseInt(item.total), date: item.time};
+ var line = {x: x, y: parseInt(item.total, 10), date: item.time};
}
else {
- var line = {x: x, y: parseInt(item.count), date: item.time};
+ var line = {x: x, y: parseInt(item.count, 10), date: item.time};
}
data.push(line);
x += 1;

0 comments on commit 1ad308f

Please sign in to comment.