Archived
1
0
This commit is contained in:
Mercier Pierre-Olivier 2013-11-23 20:11:53 +01:00
parent be336da8d6
commit 6e655751d4

View File

@ -352,13 +352,10 @@ sub compute ($$$;$$$)
if ($glob ne $ref) if ($glob ne $ref)
{ {
my $value = 0; my $value = 0;
for my $r (grep { match_glob($ref, $_); } keys %$ids) for my $r (grep { match_glob($ref, $_); } keys %$ids) {
{
log DEBUG, "$glob match $r (expanded from $ref)";
$value += $ids->{ $r }; $value += $ids->{ $r };
} }
log DEBUG, "New $ref is now $value"; $ids->{ $ref } = $value if ($value);
$ids->{ $ref } = $value;
} }
}; };
if ($@) { if ($@) {