Fix brand stat seeder

This commit is contained in:
Jérémy Munsch 2021-11-03 16:27:00 +01:00
parent 1e1ff0dfc8
commit 675d06e701
No known key found for this signature in database
GPG key ID: 55196BEE445F6049

View file

@ -28,7 +28,8 @@ class BrandStatSeeder extends Seeder
for ($i = 730; $i > 0; $i--) {
$total += floor($i / 2);
// pourcentage active
$pActive = $active + ((731 - $i + 150) * 100 / 730) / 100;
$pActive = $active + ($i * 100 / 730) / 100 - 0.2;
$pActive = $pActive < 0.3 ? 0.3 : $pActive;
$pInactive = 1 - $pActive;
// pourcentage nouveau
$pNew = $new;