[Nagiosplug-checkins] SF.net SVN: nagiosplug: [1836] nagiosplug/branches/dermoth_ntp_rework/ plugins/check_ntp_peer.c
dermoth at users.sourceforge.net
dermoth at users.sourceforge.net
Mon Nov 26 11:34:43 CET 2007
Revision: 1836
http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1836&view=rev
Author: dermoth
Date: 2007-11-26 02:34:43 -0800 (Mon, 26 Nov 2007)
Log Message:
-----------
Fix bug introduced in last commit: jitter and stratum must be initialized at the begining (and /me must have some rest now).
Modified Paths:
--------------
nagiosplug/branches/dermoth_ntp_rework/plugins/check_ntp_peer.c
Modified: nagiosplug/branches/dermoth_ntp_rework/plugins/check_ntp_peer.c
===================================================================
--- nagiosplug/branches/dermoth_ntp_rework/plugins/check_ntp_peer.c 2007-11-26 10:23:25 UTC (rev 1835)
+++ nagiosplug/branches/dermoth_ntp_rework/plugins/check_ntp_peer.c 2007-11-26 10:34:43 UTC (rev 1836)
@@ -234,6 +234,7 @@
status = STATE_OK;
*offset_result = STATE_UNKNOWN;
+ *jitter = *stratum = -1;
/* Long-winded explanation:
* Getting the sync peer offset, jitter and stratum requires a number of
@@ -576,7 +577,7 @@
break;
}
if(!syncsource_found)
- asprintf(&result_line, "%s %s, ", result_line, _("Server not synchronized"));
+ asprintf(&result_line, "%s %s,", result_line, _("Server not synchronized"));
if(offset_result == STATE_UNKNOWN){
asprintf(&result_line, "%s %s", result_line, _("Offset unknown"));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list