diff options
author | wollman <wollman@FreeBSD.org> | 1994-02-03 22:09:07 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-02-03 22:09:07 +0000 |
commit | 394ee3bae890775188c4812249fc996cb7cc0abe (patch) | |
tree | 6264e1a9edb32ef88fffee8f460175549f1b556f /usr.sbin/xntpd/scripts/stats | |
parent | 8e51e9f1429efc498f923bce8b25b20f47d7c075 (diff) | |
download | FreeBSD-src-394ee3bae890775188c4812249fc996cb7cc0abe.zip FreeBSD-src-394ee3bae890775188c4812249fc996cb7cc0abe.tar.gz |
xntpd version 3.3z from UDel
Diffstat (limited to 'usr.sbin/xntpd/scripts/stats')
-rw-r--r-- | usr.sbin/xntpd/scripts/stats/clock.awk | 4 | ||||
-rwxr-xr-x | usr.sbin/xntpd/scripts/stats/summary.sh | 15 |
2 files changed, 12 insertions, 7 deletions
diff --git a/usr.sbin/xntpd/scripts/stats/clock.awk b/usr.sbin/xntpd/scripts/stats/clock.awk index f6afc99..c9d1455 100644 --- a/usr.sbin/xntpd/scripts/stats/clock.awk +++ b/usr.sbin/xntpd/scripts/stats/clock.awk @@ -107,7 +107,7 @@ BEGIN { # select ITF records # see summary for decode # - else if (NF >= 13 && $5 == "ITF" && $12 >= 500) { + else if (NF >= 13 && $5 == "ITF" && $12 >= 100) { itf_count++ if ($9 > 200e-9 || $9 < -200e-9) itf_200++ @@ -122,7 +122,7 @@ BEGIN { # select ETF records # see summary for decode # - else if (NF >= 13 && $5 == "ETF" && $13 >= 500) { + else if (NF >= 13 && $5 == "ETF" && $13 >= 100) { etf_count++ if ($6 > etf_max) etf_max = $6 diff --git a/usr.sbin/xntpd/scripts/stats/summary.sh b/usr.sbin/xntpd/scripts/stats/summary.sh index e27ecfa..ab99f4d 100755 --- a/usr.sbin/xntpd/scripts/stats/summary.sh +++ b/usr.sbin/xntpd/scripts/stats/summary.sh @@ -4,9 +4,14 @@ # # This script can be run from a cron job once per day, week or month. It # runs the file-specific summary script and appends the summary data to -# designated files. +# designated files, which must be created first. # -peer.sh >>peer_summary -loop.sh >>loop_summary -clock.sh >>clock_summary - +if ( -e peer_summary ) then + peer.sh >>peer_summary +endif +if ( -e loop_summary ) then + loop.sh >>loop_summary +endif +if ( -e clock_summary ) then + clock.sh >>clock_summary +endif |