X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXProt.pm;h=201013a0c1bd034b9e7abcbac159756dd7a8031e;hb=8db1b590ed9b6b260fb4d437c120cccdd08bbb4d;hp=f8a13407cec649ff03b2b2eea508d98e462cc898;hpb=a9cff23c7050696bfe1dee906157416c49739f07;p=spider.git diff --git a/perl/DXProt.pm b/perl/DXProt.pm index f8a13407..201013a0 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -1916,12 +1916,13 @@ sub in_filter_route sub eph_dup { my $s = shift; + my $r; # chop the end off $s =~ s/\^H\d\d?\^?\~?$//; - return 1 if exists $eph{$s}; + $r = 1 if exists $eph{$s}; # pump up the dup if it keeps circulating $eph{$s} = $main::systime; - return undef; + return $r; } sub eph_del_regex @@ -1940,7 +1941,7 @@ sub eph_clean my ($key, $val); while (($key, $val) = each %eph) { - if ($main::systime - $val > 90) { + if ($main::systime - $val > 180) { delete $eph{$key}; } }