projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow someone to reject msgs from an interface call
[spider.git]
/
perl
/
DXCluster.pm
diff --git
a/perl/DXCluster.pm
b/perl/DXCluster.pm
index 1b81065477c4c9daf5be1c55a4aa5d9e6b07570d..36d1d20f9db5e20e5d09a75a5dabbde5d078342c 100644
(file)
--- a/
perl/DXCluster.pm
+++ b/
perl/DXCluster.pm
@@
-155,7
+155,7
@@
sub mynode
unless ($noderef) {
my $mynode = $self->{mynode};
my $call = $self->{call};
unless ($noderef) {
my $mynode = $self->{mynode};
my $call = $self->{call};
- dbg(
'err', "parent node $mynode has disappeared from $call"
);
+ dbg(
"parent node $mynode has disappeared from $call") if isdbg('err'
);
}
}
return $noderef;
}
}
return $noderef;
@@
-173,7
+173,7
@@
sub dxchan
unless ($dxchan) {
my $dxcall = $self->{dxchancall};
my $call = $self->{call};
unless ($dxchan) {
my $dxcall = $self->{dxchancall};
my $call = $self->{call};
- dbg(
'err', "parent dxchan $dxcall has disappeared from $call"
);
+ dbg(
"parent dxchan $dxcall has disappeared from $call") if isdbg('err'
);
}
}
return $dxchan;
}
}
return $dxchan;
@@
-216,7
+216,7
@@
sub new
my $self = $pkg->alloc($dxchan, $call, $confmode, $here);
$self->{mynode} = $node->call;
$node->add_user($call, $self);
my $self = $pkg->alloc($dxchan, $call, $confmode, $here);
$self->{mynode} = $node->call;
$node->add_user($call, $self);
- dbg(
'cluster', "allocating user $call to $node->{call} in cluster\n"
);
+ dbg(
"allocating user $call to $node->{call} in cluster\n") if isdbg('cluster'
);
return $self;
}
return $self;
}
@@
-227,7
+227,7
@@
sub del
my $node = $self->mynode;
$node->del_user($call);
my $node = $self->mynode;
$node->del_user($call);
- dbg(
'cluster', "deleting user $call from $node->{call} in cluster\n"
);
+ dbg(
"deleting user $call from $node->{call} in cluster\n") if isdbg('cluster'
);
}
sub count
}
sub count
@@
-264,7
+264,7
@@
sub new
$self->{mynode} = $self->call; # for sh/station
$self->{users} = 0;
$nodes++;
$self->{mynode} = $self->call; # for sh/station
$self->{users} = 0;
$nodes++;
- dbg(
'cluster', "allocating node $call to cluster\n"
);
+ dbg(
"allocating node $call to cluster\n") if isdbg('cluster'
);
return $self;
}
return $self;
}
@@
-290,7
+290,7
@@
sub del
$ref->del(); # this also takes them out of this list
}
delete $DXCluster::cluster{$call}; # remove me from the cluster table
$ref->del(); # this also takes them out of this list
}
delete $DXCluster::cluster{$call}; # remove me from the cluster table
- dbg(
'cluster', "deleting node $call from cluster\n"
);
+ dbg(
"deleting node $call from cluster\n") if isdbg('cluster'
);
$users -= $self->{users}; # it may be PC50 updated only therefore > 0
$users = 0 if $users < 0;
$nodes--;
$users -= $self->{users}; # it may be PC50 updated only therefore > 0
$users = 0 if $users < 0;
$nodes--;