|
@@ -39,7 +39,7 @@ |
|
|
block discarded – undo |
|
39
|
39
|
// Use alltime count if there was no scan last 7 days |
|
40
|
40
|
$total_pokemon = ($total_pokemon_last_week > 0) ? $total_pokemon_last_week : $total_pokemon_alltime; |
|
41
|
41
|
|
|
42
|
|
- $percent = ($pokemon['total']*100) / $total_pokemon; |
|
|
42
|
+ $percent = ($pokemon['total'] * 100) / $total_pokemon; |
|
43
|
43
|
$rounded = round($percent, 4); |
|
44
|
44
|
// do not round to 0 if there was a spawn. Set to min 0.0001. |
|
45
|
45
|
$rounded = ($rounded == 0.0000 && $pokemon['total'] > 0) ? $rounded = 0.0001 : $rounded; |
Please login to merge, or discard this patch.