Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
fixed the parseInt calls
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekziade committed Mar 1, 2013
1 parent 539972d commit 1ad308f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monolith/web/media/lib/monolith.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -343,10 +343,10 @@ MonolithBase.extend("MonolithAggregate",
$.each(json.facets.facet_histo.entries, function(i, item) { $.each(json.facets.facet_histo.entries, function(i, item) {
// XXX why count vs total ? // XXX why count vs total ?
if (item.hasOwnProperty("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 { 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); data.push(line);
x += 1; x += 1;
Expand Down

0 comments on commit 1ad308f

Please sign in to comment.