|
|
@@ -2419,7 +2419,7 @@ class BiAuditPowiazania {
|
|
|
|
|
|
private static function weightCalc($n) {
|
|
|
static $weights = [];
|
|
|
- if (isset($weights[$n])) {
|
|
|
+ if (!isset($weights[$n])) {
|
|
|
$weight = floor(log(($n - 1) / 10) / log(2)) + 1;
|
|
|
if ($weight < 1) $weight = 1;
|
|
|
$weights[$n] = $weight;
|