Skip to content

Show stale heartbeat ages as days, hours and minutes - #101

Merged
valzargaming merged 1 commit into
mainfrom
claude/project-thread-edrfd4
Nov 14, 2026
Merged

valzargaming merged 1 commit into
mainfrom
claude/project-thread-edrfd4

Conversation

@valzargaming

Copy link
Copy Markdown
Member

Requested by Val · project thread

Heartbeat status embeds showed the age since last observed progress as raw seconds (e.g. 25901s). They now read 7h 11m, 1d 2h 3m, or 45s under a minute.

  • New ServerHeartbeat::formatAge() (no existing duration helper in the bot), used by GameServer::heartbeatEmbed().
  • tests/local/heartbeat.php covers the formatting cases.

Local: php tests/local/heartbeat.php, heartbeat-integration.php, heartbeat-playercount.php all pass. Not live until the bot is updated and restarted.


Generated by Claude Code

Heartbeat status embeds printed the age as raw seconds (e.g. 25901s).
Add ServerHeartbeat::formatAge so they read 7h 11m or 1d 2h 3m.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WTP2Rinp7aepNK5PNXUm4
Copilot AI balanced review requested due to automatic review settings November 14, 2026 22:08
@valzargaming
valzargaming merged commit c21c3a5 into main Nov 14, 2026
47 of 50 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

3 participants