root/scripts/stat_ntpd @ a7599d1f
#!/bin/sh
|
|
|
|
# http://www.ntp.org/ntpfaq/NTP-s-sw-clocks-quality.htm
|
|
|
|
PARAM=${1:-noexistent}
|
|
|
|
ntpq -c rv | perl -ne "print \$1 if m/\b${PARAM}=([-]?\d+\.\d+)/"
|
|
|