File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ services:
24
24
25
25
networks :
26
26
serverstatus-network :
27
- name : serverstatus-network
28
27
ipam :
29
28
config :
30
29
- subnet : 172.23.0.0/24
Original file line number Diff line number Diff line change @@ -543,7 +543,7 @@ void CMain::offlineAlarmThread(void *pUser)
543
543
time_t currentStamp = (long long )time (/* ago*/ 0 );
544
544
if ((currentStamp-pClients->m_AlarmLastTime ) > pWatchDogs[ID].m_aInterval )
545
545
{
546
- printf (" 客户端下线 , Client disconnects and sends alert information\n " );
546
+ printf (" 客户端下线且超过阈值 , Client disconnects and sends alert information\n " );
547
547
pClients->m_AlarmLastTime = currentStamp;
548
548
CURL *curl;
549
549
CURLcode res;
@@ -588,6 +588,8 @@ void CMain::offlineAlarmThread(void *pUser)
588
588
}
589
589
curl_global_cleanup ();
590
590
}
591
+ else
592
+ printf (" 客户端下线但未超过阈值,No alarm if the threshold is not exceeded\n " );
591
593
}
592
594
ID++;
593
595
}
@@ -596,6 +598,7 @@ void CMain::offlineAlarmThread(void *pUser)
596
598
{
597
599
printf (" 网络波动,No alarm information is sent due to network fluctuations\n " );
598
600
}
601
+ fflush (stdout);
599
602
}
600
603
601
604
int CMain::ReadConfig ()
You can’t perform that action at this time.
0 commit comments