novi upstream verzije 2.8.3
[ossec-hids.git] / src / client-agent / notify.c
index e698380..bfd4341 100755 (executable)
@@ -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;
     }