|
@@ -3739,9 +3739,9 @@ class BiAuditPowiazania {
|
|
|
$w = 20;
|
|
$w = 20;
|
|
|
return floor(log(((floor(($c - 1) / ($w / 2))) ?: 1), 2));
|
|
return floor(log(((floor(($c - 1) / ($w / 2))) ?: 1), 2));
|
|
|
default:
|
|
default:
|
|
|
- return 0;
|
|
|
|
|
-// $w = 100;
|
|
|
|
|
-// return floor(log(((floor(($c - 1) / ($w / 2))) ?: 1), 2));
|
|
|
|
|
|
|
+// return 0;
|
|
|
|
|
+ $w = 50;
|
|
|
|
|
+ return floor(log(((floor(($c - 1) / ($w / 2))) ?: 1), 2));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -3805,7 +3805,7 @@ class BiAuditPowiazania {
|
|
|
$weight++;
|
|
$weight++;
|
|
|
if ($weight <= $this->maxDepth) {
|
|
if ($weight <= $this->maxDepth) {
|
|
|
foreach ($nodes as $i => $node) {
|
|
foreach ($nodes as $i => $node) {
|
|
|
- $weightNode = $weight + $this->weightCalc($count, $node['RELATION_ID']);
|
|
|
|
|
|
|
+ $weightNode = $weight + $this->weightCalc($count, $this->relationName($node['RELATION_ID']));
|
|
|
if ($weightNode <= $this->maxDepth) $this->findPowiazania($node['ID'], $weightNode, ($progress + ($i / ($count * $steps))), ($count * $steps), $node['RELATION_ID'], $node['PARAMS']);
|
|
if ($weightNode <= $this->maxDepth) $this->findPowiazania($node['ID'], $weightNode, ($progress + ($i / ($count * $steps))), ($count * $steps), $node['RELATION_ID'], $node['PARAMS']);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|