]> dxcluster.org Git - spider.git/commitdiff
fix $by in dups
authorminima <minima>
Mon, 21 Mar 2005 17:47:11 +0000 (17:47 +0000)
committerminima <minima>
Mon, 21 Mar 2005 17:47:11 +0000 (17:47 +0000)
perl/Spot.pm

index a57edbe81659a1b1b63bb269e93bf7e99e94f3b2..112fcffed0565c8a9cd4010f4ab05ac52deb5972 100644 (file)
@@ -328,6 +328,9 @@ sub dup
        $d = int ($d / 60);
        $d *= 60;
 
+       # remove SSID or area
+       $by =~ s|[-/]\d+$||;
+       
        $freq = sprintf "%.1f", $freq;       # normalise frequency
        $call = substr($call, 0, $maxcalllth) if length $call > $maxcalllth;