]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 666] ntpq opeers displays jitter rather than dispersion
authorHarlan Stenn <stenn@ntp.org>
Mon, 23 Oct 2006 04:38:50 +0000 (00:38 -0400)
committerHarlan Stenn <stenn@ntp.org>
Mon, 23 Oct 2006 04:38:50 +0000 (00:38 -0400)
bk: 453c475atq_nOGvd-B0yYjdNxa0NiQ

NEWS
ntpq/ntpq-subs.c

diff --git a/NEWS b/NEWS
index 296a925c7f060d8125811e07f7cee1bd94e3aff8..900a8c140a63d03bf420d48fc4ae72434cad9ccf 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+* [Bug 666] ntpq opeers displays jitter rather than dispersion.
 * [Bug 718] Use the recommended type for the saddrlen arg to getsockname().
 * [Bug 717] Fix libopts compile problem.
 * [Bug 715] Fix a multicast issue under Linux.
index de7ec8c6ac1030b590d97f4b112c1df90088665d..93551bd72b0ae1b681e8d3a056d2904390ad4ad7 100644 (file)
@@ -1469,8 +1469,9 @@ doprintpeers(
                                havevar[HAVE_OFFSET] = 1;
                        break;
                        case CP_JITTER:
-                       if (decodetime(value, &estjitter))
-                               havevar[HAVE_JITTER] = 1;
+                       if (pvl == peervarlist)
+                               if (decodetime(value, &estjitter))
+                                       havevar[HAVE_JITTER] = 1;
                        break;
                        case CP_DISPERSION:
                        if (decodetime(value, &estdisp))