Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #223 from mariux64/phaseout-lol
Phaseout lol
  • Loading branch information
donald committed Jan 18, 2022
2 parents e6b585c + 86feb86 commit 611389c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions clusterd/clusterd
Expand Up @@ -1243,7 +1243,7 @@ sub loadavg { # AXP : (system load average) , LINUX: (system load average, pl
}
}

our $STAT_TARGET='lol';
our $STAT_TARGET='afk';
our $STAT_SEQ=0;
sub send_stat {
My::Select::timeout_requeue(600);
Expand Down Expand Up @@ -1656,8 +1656,7 @@ sub sync_cluster_pw {

our %AREA_ROUTER=
(
lol => '141.14.31.255',
# orkrist=> '10.14.0.255',
wtf => '141.14.31.255',
);

our $area_socket;
Expand Down Expand Up @@ -2148,7 +2147,7 @@ if (defined $options{'push'}) {
My::Select::timeout(rand(60),\&send_stat);
My::Select::timeout(0,\&sample_rproc) unless Donald::Tools::is_alpha;
$my_hostname eq $STAT_TARGET and My::Cluster::Updown::init();
$my_hostname eq 'lol' and My::NetlogReceiver::init();
$my_hostname eq 'macheteinfach' and My::NetlogReceiver::init();
My::Select::timeout(600,\&check_overload);

My::Select::run();
Expand Down
2 changes: 1 addition & 1 deletion netlog/netlog
Expand Up @@ -67,7 +67,7 @@ sub check_idle {
sub netlog {
my ($log)=@_;
unless (defined $send_socket) {
$send_socket=new IO::Socket::INET(PeerAddr=>'lol',PeerPort=>1028) or return;
$send_socket=new IO::Socket::INET(PeerAddr=>'macheteinfach',PeerPort=>1028) or return;
}
if ($send_socket->send(pack('n',length($log)).$log)) {
$send_socket_active=Donald::Select::time();
Expand Down

0 comments on commit 611389c

Please sign in to comment.