ntpq peers formatting needs floating point for time slots.

Hal Murray hmurray at megapathdsl.net
Wed Feb 1 22:06:18 UTC 2017


[I tried to submit an issue, but it was reject as spam.]

Somebody recently changed things to print out a 4th digit.  That made things worse.  It was already broken if you had a negative number bigger than 1000 which isn't all that uncommon.

ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*HPGPS(0)        .GPS.            0 l    7   64  377   0.0000  -0.0360  0.0070
oPPS(0)          .PPS.            0 l   58   64  377   0.0000  -0.0000  0.0000
 SHM(0)          .SHM.            0 l   27   64  377   0.0000 -582.8500 33.5700
 SHM(1)          .SHM.            0 l   27   64  377   0.0000 -1000.5740  0.0450
 GPSD(0)         .GPSD.           0 l   31   64  377   0.0000 -525.4060 28.9060
 GPSD(128)       .GPSD.           0 l   30   64  377   0.0000 -1000.5720  0.0440

ntpq from ntp-classic:
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*HPGPS(0)        .GPS.            0 l   51   64  377    0.000   -0.036   0.016
oPPS(0)          .PPS.            0 l   39   64  377    0.000    0.000   0.000
 SHM(0)          .SHM.            0 l    8   64  377    0.000 -590.624  14.372
 SHM(1)          .SHM.            0 l    8   64  377    0.000 -1000.53   0.045
 GPSD(0)         .GPSD.           0 l   12   64  377    0.000 -527.745  14.946
 GPSD(128)       .GPSD.           0 l   11   64  377    0.000 -1000.58   0.025


-- 
These are my opinions.  I hate spam.




More information about the devel mailing list