diff --git a/lib/utils/DecisionUtil.js b/lib/utils/DecisionUtil.js index 9dbb94a..c4a66ea 100644 --- a/lib/utils/DecisionUtil.js +++ b/lib/utils/DecisionUtil.js @@ -1013,7 +1013,7 @@ let DecisionUtil = { ) { // normalise the weights of all the shortlisted campaigns shortlistedCampaigns.forEach(campaign => { - campaign.weight = Math.floor(100 / shortlistedCampaigns.length); + campaign.weight = Math.ceil((100 / shortlistedCampaigns.length) * 10) / 10; }); // re-distribute the traffic for each camapign