We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16df6eb commit efee33fCopy full SHA for efee33f
lib/utils/DecisionUtil.js
@@ -1013,7 +1013,7 @@ let DecisionUtil = {
1013
) {
1014
// normalise the weights of all the shortlisted campaigns
1015
shortlistedCampaigns.forEach(campaign => {
1016
- campaign.weight = Math.floor(100 / shortlistedCampaigns.length);
+ campaign.weight = Math.ceil((100 / shortlistedCampaigns.length) * 10) / 10;
1017
});
1018
1019
// re-distribute the traffic for each camapign
0 commit comments