Skip to content

Commit

Permalink
pedantic 0k
Browse files Browse the repository at this point in the history
  • Loading branch information
christoffon committed Jun 24, 2024
1 parent f228feb commit ff3a5b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ func startServer(port int) {

// this will not work
client := osc.NewClient(broadcastAddr, port)
fmt.Println("%T", client)
if client == nil {
// ... this will happen, but actually works
}

fmt.Printf("Starting OSC server @%v, Unix epoch: %v\n", port, time.Now().Unix())

Expand Down Expand Up @@ -106,7 +108,7 @@ func main() {

for {

offset := time.Now().Add(ntpTime.ClockOffset) //refreshOffset(totalNo)
offset := time.Now().UTC().Add(ntpTime.ClockOffset) //refreshOffset(totalNo)
t := float64(offset.UnixNano()) / 1000000000.0
elapsed := offset.Sub(midnight)

Expand Down

0 comments on commit ff3a5b2

Please sign in to comment.