From 60632209207f5b149b7b65136d061dd9ac2f52b7 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 26 Mar 2017 15:58:56 +0200 Subject: Multi::RG: Fix inverse check for non-official relations --- lib/Multi/RG.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Multi/RG.pm b/lib/Multi/RG.pm index 468808b5..4234d1c2 100644 --- a/lib/Multi/RG.pm +++ b/lib/Multi/RG.pm @@ -112,7 +112,7 @@ sub getrel { # id, res, time # - How well does this work together with the current caching mechanism? It's # possible that a distant VN doesn't get its relation graph updated because # it's being excluded here. - if($C{type} eq 'v' && scalar keys %{$C{nodes}} > 30 && grep $_->[1], values %{$C{rels}}) { + if($C{type} eq 'v' && scalar keys %{$C{nodes}} > 30 && grep !$_->[1], values %{$C{rels}}) { AE::log info => "Graph for $C{type}$C{id} is too large, re-creating graph without unofficial links"; return creategraph v => $C{id}, 1, $C{sqlt}; } -- cgit v1.2.3