projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove 'recursion limit' message fromRoute.pm
[spider.git]
/
perl
/
Route
/
Node.pm
diff --git
a/perl/Route/Node.pm
b/perl/Route/Node.pm
index d2105f8f6b6bcf57aea77391344f243c7af3681e..23e293820295f6c8f4379373e8a85ae5c0481181 100644
(file)
--- 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->{flags} = shift || Route::here(1);
$self->{users} = [];
$self->{nodes} = [];
- $self->{lastid} = {};
$self->{PC92C_dxchan} = '';
$self->reset_obs; # by definition
$self->{PC92C_dxchan} = '';
$self->reset_obs; # by definition
@@
-360,6
+359,18
@@
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 DESTROY
{
my $self = shift;
sub DESTROY
{
my $self = shift;