for(keys %$state)
{
- if($state->{$_}{valid}[0] < $s->{$_}[0])
+ if($state->{$_}{valid}[0] < $s->{$_})
{
# The current state is LESS valid than the previously run one. We NEED to run this.
# The saved state can safely become the intersection [citation needed].
for(keys %$state)
{
- $s->{$_} = $state->{$_}{valid}
- if $state->{$_}{valid}[0] < $s->{$_}[0];
+ $s->{$_} = $state->{$_}{valid}[0]
+ if $state->{$_}{valid}[0] < $s->{$_};
}
return 0;
}
else
{
# Never seen this IP yet.
- $ip_seen{$ip} = { map { ($_ => $state->{$_}{valid}); } keys %$state };
+ $ip_seen{$ip} = { map { ($_ => $state->{$_}{valid}[0]); } keys %$state };
return 0;
}
},