X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FThingy%2FDx.pm;h=aa7322ed12c1a6a4e9e2bc03b6bd2176372f833b;hb=57740a288c82793988be72c9b5666087d636344f;hp=c94760c25378809e7959fabcca595e76fab408b8;hpb=0dfc6b88cf90a8b8d01f672f6c75915dd4afaf6a;p=spider.git diff --git a/perl/Thingy/Dx.pm b/perl/Thingy/Dx.pm index c94760c2..aa7322ed 100644 --- a/perl/Thingy/Dx.pm +++ b/perl/Thingy/Dx.pm @@ -45,15 +45,17 @@ sub from_Aranea my $thing = shift; return unless $thing; my $t = hex($thing->{t}) if exists $thing->{t}; - $t ||= $thing->{time} / 60; # if it is an aranea generated + $t ||= int($thing->{time} / 60); # if it is an aranea generated + my $by = $thing->{b} || $thing->{fromuser} || $thing->{user} || $thing->{origin}; my @spot = Spot::prepare( $thing->{f}, $thing->{c}, $t*60, ($thing->{i} || ''), - ($thing->{b} || $thing->{fromuser} || $thing->{user} || $thing->{origin}), + $by, ($thing->{o} || $thing->{origin}), ); + $spot[4] = $by; # don't modify the spotter SSID $thing->{spotdata} = \@spot; return $thing; }