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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=347ff0d73eee5e722e63a7064177beeae32d0ca7;p=thirdparty%2Fntp.git [Bug 666] ntpq opeers displays jitter rather than dispersion bk: 453c475atq_nOGvd-B0yYjdNxa0NiQ --- diff --git a/NEWS b/NEWS index 296a925c7f..900a8c140a 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 de7ec8c6ac..93551bd72b 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))