projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try again
[spider.git]
/
perl
/
Thingy
/
Dx.pm
diff --git
a/perl/Thingy/Dx.pm
b/perl/Thingy/Dx.pm
index c94760c25378809e7959fabcca595e76fab408b8..aa7322ed12c1a6a4e9e2bc03b6bd2176372f833b 100644
(file)
--- 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};
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} || ''),
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}),
);
($thing->{o} || $thing->{origin}),
);
+ $spot[4] = $by; # don't modify the spotter SSID
$thing->{spotdata} = \@spot;
return $thing;
}
$thing->{spotdata} = \@spot;
return $thing;
}