From: Harlan Stenn Date: Mon, 23 Oct 2006 04:38:50 +0000 (-0400) Subject: [Bug 666] ntpq opeers displays jitter rather than dispersion X-Git-Tag: NTP_4_2_3P61_RC~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1086d9b9ac87986767c87191b1ba6487350cc31f;p=thirdparty%2Fntp.git [Bug 666] ntpq opeers displays jitter rather than dispersion bk: 453c475atq_nOGvd-B0yYjdNxa0NiQ --- diff --git a/NEWS b/NEWS index 296a925c7..900a8c140 100644 --- 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. diff --git a/ntpq/ntpq-subs.c b/ntpq/ntpq-subs.c index de7ec8c6a..93551bd72 100644 --- a/ntpq/ntpq-subs.c +++ b/ntpq/ntpq-subs.c @@ -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))