Skip to content

Commit

Permalink
Merge pull request #40 from yieldbot/hgpricecap-bkt-string-typo
Browse files Browse the repository at this point in the history
Fix price bucket string; high granularity was using low price cap.
  • Loading branch information
mkendall07 committed Sep 25, 2015
2 parents 8b56504 + 0a1c353 commit b266325
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var objectType_number = 'number';
var _loggingChecked = false;

var _lgPriceCap = 5.00;
var _mgPriceCap = 10.00;
var _mgPriceCap = 20.00;
var _hgPriceCap = 20.00;

var t_Arr = 'Array',
Expand Down Expand Up @@ -242,8 +242,8 @@ exports.getPriceBucketString = function(cpm) {
}

//round to closet .01
if (cpmFloat > _lgPriceCap) {
returnObj.high = _lgPriceCap.toFixed(2);
if (cpmFloat > _hgPriceCap) {
returnObj.high = _hgPriceCap.toFixed(2);
} else {
returnObj.high = (Math.floor(cpm * 100) / 100).toFixed(2);
}
Expand Down

0 comments on commit b266325

Please sign in to comment.