]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 2035] ntpq -c mrulist sleeps 1 sec between queries, not 5 msec.
authorDave Hart <hart@ntp.org>
Tue, 18 Oct 2011 06:33:06 +0000 (06:33 +0000)
committerDave Hart <hart@ntp.org>
Tue, 18 Oct 2011 06:33:06 +0000 (06:33 +0000)
bk: 4e9d1da2B4wjuxS038s4B3TiWKJBtw

ChangeLog
configure.ac
ntpq/ntpq-subs.c

index 0c3200f16e304006dd3e05f9a8e3745ec5d465c6..ff7739d5556c8ba5aac91a2c95271814a080331d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 2035] ntpq -c mrulist sleeps 1 sec between queries, not 5 msec.
 (4.2.7p225) 2011/10/15 Released by Harlan Stenn <stenn@ntp.org>
 * Documentation updates from Dave Mills.
 (4.2.7p224) 2011/10/14 Released by Harlan Stenn <stenn@ntp.org>
index 9f32a5d28aa9e6b983fe8293b1cf2f170ddff725..1cf14f37e010a3f6e97cb4042062511e96fd1b9e 100644 (file)
@@ -755,7 +755,7 @@ AC_CHECK_FUNCS(
     )]
 )
 
-AC_CHECK_FUNCS([getbootfile getuid getrusage strsignal])
+AC_CHECK_FUNCS([getbootfile getuid getrusage nanosleep strsignal])
 
 case "$ac_cv_header_kvm_h" in
  yes)
index d5e4035843b5432705f8a15e2aea43f63168df42..6a577c1a2f7cedba470901bd058120254dc1d143 100644 (file)
@@ -2183,19 +2183,15 @@ add_mru(
                UNLINK_SLIST(unlinked, hash_table[hash], mon, hlink, mru);
                NTP_INSIST(unlinked == mon);
                mru_dupes++;
-               if (debug)
-                       fprintf(stderr, "(updated from %08x.%08x) ",
-                               mon->last.l_ui, mon->last.l_uf);
+               TRACE(2, ("(updated from %08x.%08x) ", mon->last.l_ui,
+                     mon->last.l_uf));
        }
        LINK_DLIST(mru_list, add, mlink);
        LINK_SLIST(hash_table[hash], add, hlink);
-       if (debug)
-               fprintf(stderr,
-                       "add_mru %08x.%08x c %d m %d v %d rest %x first %08x.%08x %s\n",
-                       add->last.l_ui, add->last.l_uf, add->count,
-                       (int)add->mode, (int)add->ver, (u_int)add->rs,
-                       add->first.l_ui, add->first.l_uf,
-                       sptoa(&add->addr));
+       TRACE(2, ("add_mru %08x.%08x c %d m %d v %d rest %x first %08x.%08x %s\n",
+             add->last.l_ui, add->last.l_uf, add->count,
+             (int)add->mode, (int)add->ver, (u_int)add->rs,
+             add->first.l_ui, add->first.l_uf, sptoa(&add->addr)));
        /* if we didn't update an existing entry, alloc replacement */
        if (NULL == mon) {
                mon = emalloc(sizeof(*mon));