ntp: log a message after setting the clock
related to https://github.com/gokrazy/tools/issues/15
This commit is contained in:
parent
b48c3767fa
commit
546057ad9b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user