summaryrefslogtreecommitdiffstats
path: root/plugins/check_smtp.c
diff options
context:
space:
mode:
authorSubhendu Ghosh <sghosh@users.sourceforge.net>2003-03-05 05:59:01 (GMT)
committerSubhendu Ghosh <sghosh@users.sourceforge.net>2003-03-05 05:59:01 (GMT)
commit9fb966be55d832ec0324d4f6cd35fd230a9a907b (patch)
tree6c88c9f52c13b88562f0c1a684ec806708357000 /plugins/check_smtp.c
parentfa5a253a7099896d9dd7d743fbbf0a99b5d36529 (diff)
downloadmonitoring-plugins-9fb966be55d832ec0324d4f6cd35fd230a9a907b.tar.gz
remove race condition for a long HELO
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/branches/release-1.3.0@369 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_smtp.c')
-rw-r--r--plugins/check_smtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index d8b9059..de382ac 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -154,9 +154,7 @@ main (int argc, char **argv)
154 if (verbose == TRUE) 154 if (verbose == TRUE)
155 printf ("SMTP %s - %d sec. response time, %s\n", 155 printf ("SMTP %s - %d sec. response time, %s\n",
156 state_text (result), (int) (end_time - start_time), buffer); 156 state_text (result), (int) (end_time - start_time), buffer);
157 else 157
158 printf ("SMTP %s - %d second response time\n", state_text (result),
159 (int) (end_time - start_time));
160 } 158 }
161 } 159 }
162 160
@@ -188,6 +186,8 @@ main (int argc, char **argv)
188 /* reset the alarm */ 186 /* reset the alarm */
189 alarm (0); 187 alarm (0);
190 188
189 printf ("SMTP %s - %d second response time\n", state_text (result), (int) (end_time - start_time));
190
191 return result; 191 return result;
192} 192}
193 193