X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;fp=perl%2FSpot.pm;h=64db9a722498109f10edcda7a5470ba2f05577b8;hb=d1bb2509404e68cb69d075329312818d1c47ad13;hp=c492d918ab98a5a6941d3fb5a3c6451327a73223;hpb=54939e890b7452f179003e54ecfc273bebe33390;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index c492d918..64db9a72 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -514,10 +514,9 @@ sub dup $text = substr($text, 0, $duplth) if length $text > $duplth; my $ldupkey = $oldstyle ? "X|$call|$by|$node|$freq|$d|$text" : "X|$call|$by|$node|$qrg|$nd|$text"; - dbg("Spot::dup ldupkey $ldupkey") if isdbg('spotdup'); - my $t = DXDupe::find($ldupkey); - return 1 if $t && $t - $main::systime > 0; + dbg("Spot::dup ldupkey $ldupkey t '$t'") if isdbg('spotdup'); + return 1 if $t > 0; DXDupe::add($ldupkey, $main::systime+$dupage) unless $just_find; $otext = substr($otext, 0, $duplth) if length $otext > $duplth; @@ -525,7 +524,8 @@ sub dup if (length $otext && $otext ne $text) { $ldupkey = $oldstyle ? "X|$freq|$call|$by|$otext" : "X|$qrg|$call|$by|$otext"; $t = DXDupe::find($ldupkey); - return 1 if $t && $t - $main::systime > 0; + dbg("Spot::dup ldupkey $ldupkey t '$t'") if isdbg('spotdup'); + return 1 if $t > 0; DXDupe::add($ldupkey, $main::systime+$dupage) unless $just_find; } return undef;