summaryrefslogtreecommitdiffstats
path: root/plugins/check_tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_tcp.c')
-rw-r--r--plugins/check_tcp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 55ce898..9bb161a 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -332,11 +332,11 @@ main (int argc, char **argv)
332 if (status && strlen(status) > 0) 332 if (status && strlen(status) > 0)
333 printf (" [%s]", status); 333 printf (" [%s]", status);
334 334
335 printf (" |%s\n", perfdata ("time", microsec, "us", 335 printf (" |%s\n", fperfdata ("time", elapsed_time, "s",
336 TRUE, warning_time*1000, 336 TRUE, warning_time,
337 TRUE, critical_time*1000, 337 TRUE, critical_time,
338 TRUE, 0, 338 TRUE, 0,
339 TRUE, socket_timeout*1000)); 339 TRUE, socket_timeout));
340 340
341 return result; 341 return result;
342} 342}
@@ -481,7 +481,7 @@ process_arguments (int argc, char **argv)
481 else 481 else
482 maxbytes = atoi (optarg); 482 maxbytes = atoi (optarg);
483 case 'q': 483 case 'q':
484 server_quit = optarg; 484 asprintf(&server_quit, "%s\r\n", optarg);
485 break; 485 break;
486 case 'r': 486 case 'r':
487 if (!strncmp(optarg,"ok",2)) 487 if (!strncmp(optarg,"ok",2))