ntp: log a message after setting the clock

related to https://github.com/gokrazy/tools/issues/15
This commit is contained in:
Michael Stapelberg 2020-06-21 07:42:00 +02:00
parent b48c3767fa
commit 546057ad9b

View File

@ -21,6 +21,7 @@ func set(rtc *os.File) error {
if err := syscall.Settimeofday(&tv); err != nil {
return err
}
log.Printf("clock set to %v", r.Time)
if rtc == nil {
return nil