Skip to content
Snippets Groups Projects
Commit 356d1bc0 authored by Jono Wenger's avatar Jono Wenger
Browse files

Fix jww.WARN

parent fd3f7318
No related branches found
No related tags found
3 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!340Project/channels
...@@ -86,7 +86,7 @@ func New(clamp time.Duration) Tracker { ...@@ -86,7 +86,7 @@ func New(clamp time.Duration) Tracker {
func (t *timeOffsetTracker) Add(gwID *id.ID, startTime, rTs time.Time, rtt, gwD time.Duration) { func (t *timeOffsetTracker) Add(gwID *id.ID, startTime, rTs time.Time, rtt, gwD time.Duration) {
if abs(startTime.Sub(rTs)) > day { if abs(startTime.Sub(rTs)) > day {
jww.WARN.Printf("Time data from %s dropped, more than an day off from"+ jww.WARN.Printf("Time data from %s dropped, more than an day off from"+
" local time; local: %s, remote: %s", startTime, rTs) " local time; local: %s, remote: %s", gwID, startTime, rTs)
return return
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment