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.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.