Mariusz Muszyński 7 rokov pred
rodič
commit
3e297dbf64

+ 4 - 4
SE/se-lib/Route/UrlAction/BiAuditGenerate.php

@@ -3739,9 +3739,9 @@ class BiAuditPowiazania {
 				$w = 20;
 				return floor(log(((floor(($c - 1) / ($w / 2))) ?: 1), 2));
 			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++;
 		if ($weight <= $this->maxDepth) {
 			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']);
 			}
 		}