projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Chain routines
[spider.git]
/
perl
/
Prefix.pm
diff --git
a/perl/Prefix.pm
b/perl/Prefix.pm
index ef748b6722b32406c7a918dc36a67566d0e42dfb..a2316a2bf3b49244f8643aa29d77fc4a864481f8 100644
(file)
--- a/
perl/Prefix.pm
+++ b/
perl/Prefix.pm
@@
-148,7
+148,6
@@
sub matchprefix
my $pref = shift;
my @partials;
my $pref = shift;
my @partials;
- $pref =~ s/-\d+$//;
for (my $i = length $pref; $i; $i--) {
$matchtotal++;
my $s = substr($pref, 0, $i);
for (my $i = length $pref; $i; $i--) {
$matchtotal++;
my $s = substr($pref, 0, $i);
@@
-203,7
+202,7
@@
sub extract
}
%cache =();
$lasttime = $main::systime;
}
%cache =();
$lasttime = $main::systime;
- $hits = $matchtotal = 0;
+ $hits = $m
isses = $m
atchtotal = 0;
}
LM: foreach $call (split /,/, $calls) {
}
LM: foreach $call (split /,/, $calls) {
@@
-211,6
+210,7
@@
LM: foreach $call (split /,/, $calls) {
# first check if the whole thing succeeds either because it is cached
# or because it simply is a stored prefix as callsign (or even a prefix)
$matchtotal++;
# first check if the whole thing succeeds either because it is cached
# or because it simply is a stored prefix as callsign (or even a prefix)
$matchtotal++;
+ $call =~ s/-\d+$//; # ignore SSIDs
my $p = $cache{$call};
my @nout;
if ($p) {
my $p = $cache{$call};
my @nout;
if ($p) {