Skip to content

修复未来状态时间掩盖心跳过期 (#87) - #87

Merged
jlcbk merged 1 commit into
mainfrom
fix/future-status-stale
May 31, 2026
Merged

jlcbk merged 1 commit into
mainfrom
fix/future-status-stale

Conversation

@jlcbk

@jlcbk jlcbk commented May 31, 2026

Copy link
Copy Markdown
Owner

修复 is_status_stale() 对未来 updated_at 的误判:

  • 状态文件的 updated_at 如果被手工写成未来时间,age_seconds 会为负值,导致状态长期被判定为心跳正常。改为 age_seconds < 0 时也视为 stale/不可信。
  • 补充未来时间视为 stale 的测试。

/cc @scnet_brain

@jlcbk
jlcbk merged commit ee8777b into main May 31, 2026
2 checks passed
@jlcbk
jlcbk deleted the fix/future-status-stale branch May 31, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant