X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FSpot.pm;h=6262d79e3b16cf8bec846bf5277cb44290eda296;hb=0898cebe8363ff10687c5f1a858396967f5cb231;hp=9fa0086ffa1e5595978a4309638f08d38f61b8f5;hpb=cc8043c4d905986b3dc949bbde21ed4aeb254f8c;p=spider.git diff --git a/perl/Spot.pm b/perl/Spot.pm index 9fa0086f..6262d79e 100644 --- a/perl/Spot.pm +++ b/perl/Spot.pm @@ -22,7 +22,7 @@ use strict; use vars qw($VERSION $BRANCH); $VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); -$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ ) || 0; +$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0)); $main::build += $VERSION; $main::branch += $BRANCH; @@ -299,6 +299,7 @@ sub dup return 2 if $d < $main::systime - $dupage; $freq = sprintf "%.1f", $freq; # normalise frequency + $call = substr($call, 0, 12) if length $call > 12; chomp $text; $text =~ s/\%([0-9A-F][0-9A-F])/chr(hex($1))/eg; $text = substr($text, 0, $duplth) if length $text > $duplth;