You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
504 B

#!/bin/sh
set -o noclobber
old=$PWD
cd $(dirname $(readlink -f "$0"))
cd ../
FLUXPLUGHOME=$PWD
. "$FLUXPLUGHOME"/master
cd $old
LINE=$($CHRONY | "$AWK" -F"," -v myhost="$myhost" -v time=`date -u +%s%N` '{printf "chrony,host=%s,reference_id=%s,stratum=%si,leap_status=%s system_time=%s,last_offset=%s,rms_offset=%s,frequency=%s,residual_frequency=%s,skew=%s,root_delay=%s,root_dispersion=%s,update_interval=%s %s\n",myhost,$2,$3,$13,$4,$5,$6,$7,$8,$9,$10,$11,$12,time}')
writeline "$LINE" "$MAXLINES"