X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=blobdiff_plain;f=src%2Fclient-agent%2Fnotify.c;h=bfd43411980e1bf3c245180ad08006e9167e7166;hb=e81e4e82e5115bf99b6fbd9ebd486de325d67ed6;hp=e698380e6e3b6d88af426b88b2ece8cfb7e2d61d;hpb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;p=ossec-hids.git diff --git a/src/client-agent/notify.c b/src/client-agent/notify.c index e698380..bfd4341 100755 --- a/src/client-agent/notify.c +++ b/src/client-agent/notify.c @@ -90,7 +90,7 @@ void run_notify() #ifndef ONEWAY /* Check if the server has responded */ - if((curr_time - available_server) > (3*NOTIFY_TIME)) + if((curr_time - available_server) > agt->max_time_reconnect_try) { /* If response is not available, set lock and * wait for it. @@ -108,7 +108,7 @@ void run_notify() /* Check if time has elapsed */ - if((curr_time - g_saved_time) < (NOTIFY_TIME - 120)) + if((curr_time - g_saved_time) < agt->notify_time) { return; }