projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1. make spot dups look back 5 mins.
[spider.git]
/
perl
/
Spot.pm
diff --git
a/perl/Spot.pm
b/perl/Spot.pm
index 78d2eda566c7536a0127ecb3a4f4eb2ae14f8e31..69a67b9e885668e6ec135db586d3e4085b9ec52f 100644
(file)
--- a/
perl/Spot.pm
+++ b/
perl/Spot.pm
@@
-314,9
+314,16
@@
sub dup
$text = substr($text, 0, $duplth) if length $text > $duplth;
unpad($text);
$text =~ s/[\\\%]\d+//g;
$text = substr($text, 0, $duplth) if length $text > $duplth;
unpad($text);
$text =~ s/[\\\%]\d+//g;
+ $text = pack("C*", map {$_ & 127} unpack("C*", $text));
$text =~ s/[^a-zA-Z0-9]//g;
$text =~ s/[^a-zA-Z0-9]//g;
+ for (0,60,120,180,240,300) {
+ my $dt = $d - $_;
+ my $dupkey = "X$freq|$call|$dt|\L$text";
+ return 1 if DXDupe::find($dupkey);
+ }
my $dupkey = "X$freq|$call|$d|\L$text";
my $dupkey = "X$freq|$call|$d|\L$text";
- return DXDupe::check($dupkey, $main::systime+$dupage);
+ DXDupe::add($dupkey, $main::systime+$dupage);
+ return 0;
}
sub listdups
}
sub listdups