From: minima Date: Mon, 21 Mar 2005 11:15:36 +0000 (+0000) Subject: try and get the hops correct X-Git-Tag: R_1_52~78 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=d575eccdad09a43d6c705d739a4e1cd82e757091;p=spider.git try and get the hops correct --- diff --git a/perl/Thingy/Dx.pm b/perl/Thingy/Dx.pm index 596f5933..feab1b94 100644 --- a/perl/Thingy/Dx.pm +++ b/perl/Thingy/Dx.pm @@ -66,10 +66,11 @@ sub gen_DXProt unless ($thing->{DXProt}) { my $sd = $thing->{spotdata}; my $hops = $thing->{hops} || DXProt::get_hops(11); + $hops = "H$hops" unless $hops =~ /^H/; my $text = $sd->[3] || ' '; $text =~ s/\^/\%5E/g; my $t = $sd->[2]; - $thing->{DXProt} = sprintf "PC11^%.1f^$sd->[1]^%s^%s^%s^$sd->[4]^$sd->[7]^H$hops^~", $sd->[0], cldate($t), ztime($t), $text; + $thing->{DXProt} = sprintf "PC11^%.1f^$sd->[1]^%s^%s^%s^$sd->[4]^$sd->[7]^$hops^~", $sd->[0], cldate($t), ztime($t), $text; } return $thing->{DXProt}; }