Fix brand stat seeder
This commit is contained in:
parent
1e1ff0dfc8
commit
675d06e701
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue