Code

negate: Fix not printing the real timeout in ALRM handler when timeout is left to...
[nagiosplug.git] / plugins / negate.c
index 0808b685481652b08dcdfb7f697aeba39a4e5f96..e8be83d76e05d59340d36a62b9e65568a42994f9 100644 (file)
@@ -67,6 +67,8 @@ main (int argc, char **argv)
        bindtextdomain (PACKAGE, LOCALEDIR);
        textdomain (PACKAGE);
 
+       timeout_interval = DEFAULT_TIMEOUT;
+
        command_line = (char **) process_arguments (argc, argv);
 
        /* Set signal handling and alarm */
@@ -242,7 +244,7 @@ print_help (void)
 
        printf (_(UT_HELP_VRSN));
 
-       printf (_(UT_TIMEOUT), DEFAULT_TIMEOUT);
+       printf (_(UT_TIMEOUT), timeout_interval);
        printf ("    %s\n", _("Keep timeout longer than the plugin timeout to retain CRITICAL status."));
 
        printf(" -o, --ok=STATUS\n");