projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix USDB problems?
[spider.git]
/
perl
/
Route
/
Node.pm
diff --git
a/perl/Route/Node.pm
b/perl/Route/Node.pm
index c1fcc5435f05d33505d1f2df3d3045dc6c30b7b9..9c2b734e1b3bb867243c59a5a28b1ba37d3c577c 100644
(file)
--- a/
perl/Route/Node.pm
+++ b/
perl/Route/Node.pm
@@
-32,7
+32,7
@@
use vars qw(%list %valid @ISA $max $filterdef $obscount);
via_pc92 => '0,Came in via pc92,yesno',
obscount => '0,Obscount',
last_PC92C => '9,Last PC92C',
via_pc92 => '0,Came in via pc92,yesno',
obscount => '0,Obscount',
last_PC92C => '9,Last PC92C',
- PC92C_dxchan => '9,Channel of PC92C',
+ PC92C_dxchan => '9,Channel of PC92C
,phash
',
);
$filterdef = $Route::filterdef;
);
$filterdef = $Route::filterdef;
@@
-286,8
+286,7
@@
sub new
$self->{flags} = shift || Route::here(1);
$self->{users} = [];
$self->{nodes} = [];
$self->{flags} = shift || Route::here(1);
$self->{users} = [];
$self->{nodes} = [];
- $self->{lastid} = 0;
- $self->{PC92C_dxchan} = '';
+ $self->{PC92C_dxchan} = {};
$self->reset_obs; # by definition
$list{$call} = $self;
$self->reset_obs; # by definition
$list{$call} = $self;
@@
-360,6
+359,31
@@
sub reset_obs
$self->{obscount} = $obscount;
}
$self->{obscount} = $obscount;
}
+sub measure_pc9x_t
+{
+ my $parent = shift;
+ my $t = shift;
+ my $lastid = $parent->{lastid};
+ if ($lastid) {
+ return ($t < $lastid) ? $t+86400-$lastid : $t - $lastid;
+ } else {
+ return 86400;
+ }
+}
+
+sub PC92C_dxchan
+{
+ my $parent = shift;
+ my $call = shift;
+ my $hops = shift;
+ if ($call && $hops) {
+ $hops =~ s/^H//;
+ $parent->{PC92C_dxchan}->{$call} = $hops;
+ return;
+ }
+ return (%{$parent->{PC92C_dxchan}});
+}
+
sub DESTROY
{
my $self = shift;
sub DESTROY
{
my $self = shift;