X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRoute%2FNode.pm;h=23e293820295f6c8f4379373e8a85ae5c0481181;hb=a5b87707adf1ba8e43fad6f2f74aa74fb1952d27;hp=c1fcc5435f05d33505d1f2df3d3045dc6c30b7b9;hpb=fee8c4eabda49d4c7440ce1075ea49dcd9c2e825;p=spider.git diff --git a/perl/Route/Node.pm b/perl/Route/Node.pm index c1fcc543..23e29382 100644 --- a/perl/Route/Node.pm +++ b/perl/Route/Node.pm @@ -286,7 +286,6 @@ sub new $self->{flags} = shift || Route::here(1); $self->{users} = []; $self->{nodes} = []; - $self->{lastid} = 0; $self->{PC92C_dxchan} = ''; $self->reset_obs; # by definition @@ -360,6 +359,18 @@ sub reset_obs $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 DESTROY { my $self = shift;