On Mon, May 18, 2009 at 01:33:31AM +0200, Thierry Deval wrote:
> Hmm, is the following a normal ntp behaviour ?
jaja. i pwnz0red scaling a little bit (:
either that or "qsmax / qsmin" same untershiedz (:
> reply from 212.68.213.59: offset -0.005038s delay 0.027410s, next query
> 32s
> adjusting local clock by 0.000108s
> adjusting clock frequency by -0.005418 to -0.082192ppm
> reply from 81.246.92.139: offset -0.001346s delay 0.019774s, next query
> 3270173s
> reply from 195.160.166.150: offset -0.000413s delay 0.028026s, next
> query 3434952s
> reply from 212.68.197.145: offset -0.003709s delay 0.036492s, next query
> 3435106s
> reply from 212.68.213.59: offset -0.004762s delay 0.026443s, next query
> 3232306s
>
> I mean, the next query will come after more than 30 days !!!
> Sounds weird...
>
> Some investigation led me to this diff over yours:
> --- ntp.c Mon May 18 01:27:19 2009
> +++ ntp.c.new Mon May 18 01:23:03 2009
> @@ -706,7 +706,7 @@
> if (offset > qsmax || !conf->status.synced || conf->freq.num <
> 3)
> conf->scale = 1;
> else if (offset < qsmin)
> - conf->scale = qsmax / QSCALE_OFF_MIN;
> + conf->scale = QSCALE_OFF_MAX / QSCALE_OFF_MIN;
> else
> conf->scale = qsmax / offset;
> }
>
> And this gives me this:
> reply from 212.68.213.59: offset 0.005195s delay 0.027216s, next query
> 31s
> reply from 212.68.213.6: offset -0.054548s delay 0.025824s, next query
> 30s
> reply from 78.40.96.167: offset -0.004814s delay 0.015933s, next query
> 33s
> reply from 79.99.122.30: offset 0.008552s delay 0.016077s, next query
> 34s
> adjusting local clock by 0.000096s
> adjusting clock frequency by 0.000191 to -0.080476ppm
> reply from 212.68.213.59: offset 0.004480s delay 0.026042s, next query
> 1640s
> reply from 212.68.213.6: offset -0.055247s delay 0.026884s, next query
> 1646s
> reply from 78.40.96.167: offset -0.004397s delay 0.016252s, next query
> 1542s
> reply from 79.99.122.30: offset 0.008508s delay 0.016477s, next query
> 1544s
> reply from 78.40.96.167: offset -0.005140s delay 0.017769s, next query
> 1615s
> reply from 79.99.122.30: offset 0.008020s delay 0.016260s, next query
> 1515s
> reply from 212.68.213.59: offset 0.005071s delay 0.028289s, next query
> 1612s
> reply from 212.68.213.6: offset -0.061995s delay 0.027676s, next query
> 1618s
>
> Which I think looks more correct. (;
>
--
paranoic mickey (my employers have changed but, the name has remained)