Commit ebc8c06
fix: replace incremental comet update with full reinit
The incremental update path in do_timed_task() could never add new
comets or remove stale ones. Combined with a boot-time race condition
(wrong datetime before GPS lock), the initial catalog could contain
wrong comets with no way to self-correct.
init_comets() is already idempotent and the computation cost is
identical since calc_comets() was called on every update anyway.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 03c75d5 commit ebc8c06
1 file changed
Lines changed: 11 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
299 | 306 | | |
300 | 307 | | |
301 | 308 | | |
302 | 309 | | |
303 | 310 | | |
304 | 311 | | |
305 | 312 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 313 | + | |
| 314 | + | |
0 commit comments