X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=4f9f18ab2fa0540f3a7157268c9a5807274f1e60;hb=bca4b6588ad991fae127c4fc32692068fa266175;hp=5ea169f2f48021be9b6d37224feb32dc7737e63e;hpb=20efba5d5f656113144785e0ef84296e6d2c2e69;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index 5ea169f2..4f9f18ab 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -394,7 +394,8 @@ sub dup # remove SSID or area $by =~ s|[-/]\d+$||; - $freq = sprintf "%.1f", $freq; # normalise frequency +# $freq = sprintf "%.1f", $freq; # normalise frequency + $freq = int $freq; # normalise frequency $call = substr($call, 0, $maxcalllth) if length $call > $maxcalllth; chomp $text; @@ -407,6 +408,7 @@ sub dup } } my $otext = $text; + $text =~ s/^\+\w+\s*//; # remove leading LoTW callsign $text = pack("C*", map {$_ & 127} unpack("C*", $text)); $text =~ s/\s{2,}[\dA-Z]?[A-Z]\d?$// if length $text > 24; $text =~ s/[^\w]//g;