X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXDupe.pm;h=1a0eb14c9de608afca15c330b73155c9704a7411;hb=9cb17cdc59baad6fd8d175ec9a644575cdc8c5d5;hp=d514affde180cc996461eed5c6b7fd79610afdf5;hpb=dbdb898e15aaeeac6106b4f49262a16c84177226;p=spider.git diff --git a/perl/DXDupe.pm b/perl/DXDupe.pm index d514affd..1a0eb14c 100644 --- a/perl/DXDupe.pm +++ b/perl/DXDupe.pm @@ -44,9 +44,9 @@ sub finish sub check { - my ($s, $t) = @_; + my $s = shift; return 1 if find($s); - add($s, $t); + add($s, shift); return 0; } @@ -57,8 +57,8 @@ sub find sub add { - my ($s, $t) = @_; - $t = $main::systime + $default unless $t; + my $s = shift; + my $t = shift || $main::systime + $default; $d{$s} = $t; }