Code

ste timeout one second greater than critical time
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>
Mon, 7 Apr 2003 11:39:04 +0000 (11:39 +0000)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>
Mon, 7 Apr 2003 11:39:04 +0000 (11:39 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@471 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_http.c

index 4734d75c5c43b4fde66490986f89046399424786..31d8646234fe6fe7ceeb6bb21713ffdbfd44deee 100644 (file)
@@ -486,6 +486,9 @@ process_arguments (int argc, char **argv)
                        asprintf (&server_address, "%s", host_name);
        }
 
+       if (check_critical_time && critical_time>(double)socket_timeout)
+               socket_timeout = (int)critical_time + 1;
+
        return TRUE;
 }
 \f