Add a warning to the verbose output if jitter_request() found no

synchronization source.


git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1665 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
Holger Weiss 2007-03-31 17:35:08 +00:00
parent 7770530829
commit eac5cdc26f

View file

@ -558,7 +558,10 @@ double jitter_request(const char *host, int *status){
}
if(verbose) printf("%d candiate peers available\n", num_candidates);
if(verbose && syncsource_found) printf("synchronization source found\n");
if(! syncsource_found) *status = STATE_WARNING;
if(! syncsource_found){
*status = STATE_WARNING;
if(verbose) printf("warning: no synchronization source found\n");
}
for (run=0; run<AVG_NUM; run++){