Project

General

Profile

Download (159 Bytes) Statistics
| Branch: | Revision:

root / scripts / stat_ntpd @ 865f4ff4

1
#!/bin/sh
2

    
3
# http://www.ntp.org/ntpfaq/NTP-s-sw-clocks-quality.htm
4

    
5
PARAM=${1:-noexistent}
6

    
7
ntpq -c rv | perl -ne "print \$1 if m/\b${PARAM}=([-]?\d+\.\d+)/"
8

    
(6-6/8)