summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ntp.c')
-rw-r--r--plugins/check_ntp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 38562ac..164d519 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -772,7 +772,7 @@ int main(int argc, char *argv[]){
772 alarm (socket_timeout); 772 alarm (socket_timeout);
773 773
774 offset = offset_request(server_address, &offset_result); 774 offset = offset_request(server_address, &offset_result);
775 /* check_ntp used to always return if offset_result == STATE_UNKNOWN. 775 /* check_ntp used to always return CRITICAL if offset_result == STATE_UNKNOWN.
776 * Now we'll only do that is the offset thresholds were set */ 776 * Now we'll only do that is the offset thresholds were set */
777 if (do_offset && offset_result == STATE_UNKNOWN) { 777 if (do_offset && offset_result == STATE_UNKNOWN) {
778 result = STATE_CRITICAL; 778 result = STATE_CRITICAL;