HomeFreeBSD

tzcode: fix tz change detection logic

Description

tzcode: fix tz change detection logic

clock_gettime() returns 0 if it succeeds, so don't capture that into the
fail logic. With this, WITH_DETECT_TZ_CHANGES successfully detects a
change after 61 seconds.

Reviewed by: imp, trasz
Differential Revision: https://reviews.freebsd.org/D33494

Details

Provenance
kevansAuthored on Dec 16 2021, 2:15 AM
Reviewer
imp
Differential Revision
D33494: tzcode: fix tz change detection logic
Parents
rG6bdbfa491f03: src.conf.5: regenerate
Branches
Unknown
Tags
Unknown