Make pixfuture primary advertiser

This commit is contained in:
2021-09-07 17:10:13 +02:00
parent f4a9d0595a
commit 854f38e1f4

View File

@@ -80,14 +80,14 @@ func (vd *viewerData) adType(files []pixelapi.ListFile) {
// Intn returns a number up to n, but never n itself. So to get a random 0 // Intn returns a number up to n, but never n itself. So to get a random 0
// or 1 we need to give it n=2. We can use this function to make other // or 1 we need to give it n=2. We can use this function to make other
// splits like 1/3 1/4, etc // splits like 1/3 1/4, etc
switch i := rand.Intn(8); i { switch i := rand.Intn(10); i {
case 0: case 0:
vd.AdBannerType = brave vd.AdBannerType = brave
case 1: case 1:
vd.AdBannerType = aAds vd.AdBannerType = aAds
case 2, 3, 4: case 2, 3:
vd.AdBannerType = adsPlus vd.AdBannerType = adsPlus
case 5, 6, 7: case 4, 5, 6, 7, 8, 9:
vd.AdBannerType = pixFuture vd.AdBannerType = pixFuture
default: default:
panic(fmt.Errorf("random number generator returned unrecognised number: %d", i)) panic(fmt.Errorf("random number generator returned unrecognised number: %d", i))