[ntp:hackers] Compiling NTP on ARM

Hal Murray hmurray at megapathdsl.net
Wed Apr 8 09:41:02 UTC 2015


> -       if (tvdiff.tv_sec > 0) {
> +       if ( abs(tvdiff.tv_sec) == tvdiff.tv_sec ) {

What if tvdiff.tv_sec is 0?
I think you have changed a > to a >=

Since the comment a few lines above says:
         * Write old and new time entries in utmp and wtmp if step
         * adjustment is greater than one second.
I don't think that is what we want.


-- 
These are my opinions.  I hate spam.





More information about the hackers mailing list