summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2017-03-26 15:58:56 +0200
committerYorhel <git@yorhel.nl>2017-03-26 15:58:56 +0200
commit60632209207f5b149b7b65136d061dd9ac2f52b7 (patch)
tree355884ad3ddd10a48d742fc6daa6018e1985fd9c /lib
parent7a2f3853a13c3c868cd4d649f4d82818f997c684 (diff)
Multi::RG: Fix inverse check for non-official relations
Diffstat (limited to 'lib')
-rw-r--r--lib/Multi/RG.pm2
1 files changed, 1 insertions, 1 deletions
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};
}