check_logfiles: 3.7.5.1
[omd.git] / packages / nagios / patches / 0009-Corrected-comparison-operator-in-service-freshness-c.dif
blob5d529f05879e9a2a0e88a1bf3dcb0ca8b3544282
1 diff --git a/base/checks.c b/base/checks.c
2 --- a/base/checks.c
3 +++ b/base/checks.c
4 @@ -2086,7 +2086,7 @@ int is_service_result_fresh(service *temp_service, time_t current_time, int log_
5          */
6         if(temp_service->check_type == SERVICE_CHECK_PASSIVE) {
7                 if(temp_service->last_check < event_start &&
8 -                       event_start - last_program_stop < freshness_threshold * 0.618) {
9 +                       event_start - last_program_stop > freshness_threshold * 0.618) {
10                         expiration_time = event_start + freshness_threshold;
11                         }
12                 }