]> dxcluster.org Git - spider.git/commitdiff
fiddled with user counts a bit more
authordjk <djk>
Tue, 19 Jan 1999 10:09:59 +0000 (10:09 +0000)
committerdjk <djk>
Tue, 19 Jan 1999 10:09:59 +0000 (10:09 +0000)
perl/DXCluster.pm

index a741e5f2c4805742d6d18b1be780f09fc4b99aad..021ff7f270875b3e0ea2cbab2e11609bc8c2e43e 100644 (file)
@@ -251,7 +251,10 @@ sub del
        }
        delete $DXCluster::cluster{$call}; # remove me from the cluster table
        dbg('cluster', "deleting node $call from cluster\n"); 
-       $nodes-- if $nodes > 0;
+       $users -= $self->{users};    # it may be PC50 updated only therefore > 0
+       $users = 0 if $users < 0;
+       $nodes--;
+       $nodes = 0 if $nodes < 0;
 }
 
 sub add_user