Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

weather: Add some heuristics to GetCurrent* #1882

Closed

Conversation

FintasticMan
Copy link
Member

This means that there is a higher likelihood that the returned event is the most up-to-date current event.
It chooses the event with the lowest expiry, and between events with the same expiry, it chooses the one with the latest timestamp.

Alternative to #1878.

I'm not the best when it comes to working with references to unique_ptrs etc, so if there's a better way to keep track of the best option so far, I'd like to hear it.

This means that there is a higher likelihood that the returned event is
the most up-to-date current event.
It chooses the event with the lowest expiry, and between events with the
same expiry, it chooses the one with the latest timestamp.
@FintasticMan FintasticMan added enhancement Enhancement to an existing app/feature weather Bugs and PRs related to Weather labels Oct 7, 2023
@github-actions
Copy link

github-actions bot commented Oct 7, 2023

Build size and comparison to main:

Section Size Difference
text 376880B 80B
data 940B 0B
bss 63420B 0B

@FintasticMan
Copy link
Member Author

Superseded by #1890.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing app/feature weather Bugs and PRs related to Weather
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant