X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?p=spider.git;a=blobdiff_plain;f=perl%2FRoute%2FNode.pm;fp=perl%2FRoute%2FNode.pm;h=6e7d931541c89d48722085be2c8363848e640b93;hp=c1fcc5435f05d33505d1f2df3d3045dc6c30b7b9;hb=93292dcd622b1505d2cbab334277c89e7c8afd27;hpb=f7d12c1c29b0653afb72fc84a4463d3c01dd506f diff --git a/perl/Route/Node.pm b/perl/Route/Node.pm index c1fcc543..6e7d9315 100644 --- a/perl/Route/Node.pm +++ b/perl/Route/Node.pm @@ -360,6 +360,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;