diff options
Diffstat (limited to 'contrib/ntp/scripts/lib')
-rw-r--r-- | contrib/ntp/scripts/lib/Makefile.in | 4 | ||||
-rw-r--r-- | contrib/ntp/scripts/lib/NTP/Util.pm | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/contrib/ntp/scripts/lib/Makefile.in b/contrib/ntp/scripts/lib/Makefile.in index 8b05f29..4a41610 100644 --- a/contrib/ntp/scripts/lib/Makefile.in +++ b/contrib/ntp/scripts/lib/Makefile.in @@ -116,6 +116,7 @@ am__aclocal_m4_deps = $(top_srcdir)/sntp/libopts/m4/libopts.m4 \ $(top_srcdir)/sntp/m4/ntp_locinfo.m4 \ $(top_srcdir)/sntp/m4/ntp_openssl.m4 \ $(top_srcdir)/sntp/m4/ntp_pkg_config.m4 \ + $(top_srcdir)/sntp/m4/ntp_problemtests.m4 \ $(top_srcdir)/sntp/m4/ntp_prog_cc.m4 \ $(top_srcdir)/sntp/m4/ntp_rlimit.m4 \ $(top_srcdir)/sntp/m4/ntp_sntp.m4 \ @@ -194,6 +195,7 @@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ +BUILD_THREAD = @BUILD_THREAD@ CALC_TICKADJ_DB = @CALC_TICKADJ_DB@ CALC_TICKADJ_DL = @CALC_TICKADJ_DL@ CALC_TICKADJ_DS = @CALC_TICKADJ_DS@ @@ -202,6 +204,7 @@ CALC_TICKADJ_NI = @CALC_TICKADJ_NI@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ +CFLAGS_LIBEVENT = @CFLAGS_LIBEVENT@ CFLAGS_NTP = @CFLAGS_NTP@ CHUTEST = @CHUTEST@ CONFIG_SHELL = @CONFIG_SHELL@ @@ -263,6 +266,7 @@ LIBTOOL_DEPS = @LIBTOOL_DEPS@ LIPO = @LIPO@ LN_S = @LN_S@ LSCF = @LSCF@ +LTHREAD_LIBS = @LTHREAD_LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MAKE_ADJTIMED = @MAKE_ADJTIMED@ diff --git a/contrib/ntp/scripts/lib/NTP/Util.pm b/contrib/ntp/scripts/lib/NTP/Util.pm index f37aeaa..69d4df1 100644 --- a/contrib/ntp/scripts/lib/NTP/Util.pm +++ b/contrib/ntp/scripts/lib/NTP/Util.pm @@ -139,7 +139,14 @@ sub ntp_sntp_line { my @output = split / /; $offset = $output[3]; - ($stratum = $output[7]) =~ s/s(\d{1,2})/$1/; + if (0) { + } elsif ($output[7] =~ /s(\d{1,2})/) { + $stratum = $1; + # warn "Found stratum at #7\n"; + } elsif ($output[8] =~ /s(\d{1,2})/) { + $stratum = $1; + # warn "Found stratum at #8\n"; + } } close $fh or croak "running sntp failed: $! (exit status $?)"; return ($offset, $stratum); |