X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FThingy%2FDx.pm;h=dd526ea53c9eb47519b9aeac219fc1a724bbb6ff;hb=4d22d5fd3874e8292d82f84a777b99ff7d10402a;hp=c4d969a03aceedab799905c57c1a7b35d725fce3;hpb=393e17fd3a08dd94596f1c02d4d20f6f9a44954f;p=spider.git diff --git a/perl/Thingy/Dx.pm b/perl/Thingy/Dx.pm index c4d969a0..dd526ea5 100644 --- a/perl/Thingy/Dx.pm +++ b/perl/Thingy/Dx.pm @@ -28,14 +28,15 @@ sub gen_Aranea my $thing = shift; unless ($thing->{Aranea}) { my $sd = $thing->{spotdata}; - my @items = ( - f=>$sd->[0], - c=>$sd->[1], - ); - push @items, ('b', $sd->[4]) unless $thing->{user}; - push @items, ('st', sprintf("%X", $sd->[2] / 60), 'o', $sd->[7]) unless $sd->[7] eq $main::mycall; - push @items, ('i', $sd->[3]) if $sd->[3]; - $thing->{Aranea} = Aranea::genmsg($thing, 'DX', @items); + $thing->{f} = $sd->[0]; + $thing->{c} = $sd->[1]; + $thing->{b} = $sd->[4] unless $thing->{user}; + unless ($sd->[7] eq $main::mycall) { + $thing->{t} = sprintf("%X", $sd->[2] / 60); + $thing->{o} = $sd->[7]; + } + $thing->{i} = $sd->[3] if $sd->[3]; + $thing->{Aranea} = Aranea::genmsg($thing, [qw(f c b t o i)]); } return $thing->{Aranea}; } @@ -44,8 +45,8 @@ sub from_Aranea { my $thing = shift; return unless $thing; - my $t = hex($thing->{st}) if exists $thing->{st}; - $t ||= $thing->{time} / 60; + my $t = hex($thing->{t}) if exists $thing->{t}; + $t ||= $thing->{time} / 60; # if it is an aranea generated my @spot = Spot::prepare( $thing->{f}, $thing->{c},