X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FRoute%2FNode.pm;h=ff3351b3d6aaac0ea698b3e3ca3f12ec0dac7e65;hb=148f4d43135748ba5aff985c50720b370ca1e336;hp=e7a6f8e4e1c352bbdb563d10bd05a21a59c851dd;hpb=d0dd6927b76507d8c2b1c6d32d6fdd34515e4a82;p=spider.git diff --git a/perl/Route/Node.pm b/perl/Route/Node.pm index e7a6f8e4..ff3351b3 100644 --- a/perl/Route/Node.pm +++ b/perl/Route/Node.pm @@ -29,8 +29,8 @@ use vars qw(%list %valid @ISA $max $filterdef); users => '0,Users,parray', usercount => '0,User Count', version => '0,Version', - pc90 => '0,Using PC90,yesno', - lastpc90 => '0,Last PC90 time,cldatetime', + np => '0,Using New Prot,yesno', + lid => '0,Last Msgid', ); $filterdef = $Route::filterdef; @@ -224,6 +224,7 @@ sub new $self->{flags} = shift; $self->{users} = []; $self->{nodes} = []; + $self->{lid} = 0; $list{$call} = $self; @@ -244,6 +245,22 @@ sub get_all return values %list; } +sub newid +{ + my $self = shift; + my $id = shift; + + return 0 if $id == $self->{lid}; + if ($id > $self->{lid}) { + $self->{lid} = $id; + return 1; + } elsif ($self->{lid} - $id > 60000) { + $self->{id} = $id; + return 1; + } + return 0; +} + sub _addparent { my $self = shift;