kopia lustrzana https://github.com/cyoung/stratux
Don't send invalid traffic reports.
rodzic
3d94fb23a1
commit
fa080b76d0
|
@ -88,7 +88,9 @@ func sendTrafficUpdates() {
|
|||
defer trafficMutex.Unlock()
|
||||
cleanupOldEntries()
|
||||
for _, ti := range traffic {
|
||||
makeTrafficReport(ti)
|
||||
if ti.position_valid {
|
||||
makeTrafficReport(ti)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue