Aircraft age field always shows 0 seconds #3
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: olemd/skyview#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem Description
The
age
field in the aircraft API response is always showing 0 seconds, which doesn't make sense as aircraft should show time since their last position update.Expected Behavior
The
age
field should show the number of seconds since the aircraft's last update, increasing over time when aircraft haven't sent recent position reports.Current Behavior
All aircraft consistently show
"age": 0
regardless of when they last transmitted.API Example
Technical Details
/internal/merger/merger.go
around line 672stateCopy.Age = now.Sub(state.LastUpdate).Seconds()
now
orstate.LastUpdate
calculation may be incorrectImpact
Investigation Needed
state.LastUpdate
is being set correctly when aircraft data is receivednow
timestamp is using the correct time source