loader: wrap elapsed time in Timer::GetTime #679
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!679
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/679/head"
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?
@c0sxm0s on GitHub · 2026-09-17 16:29 UTC · original
c0sxm0s:loader-timer-day-wrap→main· +11 −25 · 5 files · 1 commits · merged 2026-09-24 18:02 UTCCommon::Time is a time-of-day capped at TIME_MS_IN_DAY, so after 24h of emulator uptime the timestamp printed by PRINT_NAME-based log lines became invalid (empty string), and after ~24.8 days the 32-bit cast overflowed negative. Wrap the elapsed milliseconds modulo a day.
@coderabbitai[bot] on GitHub · 2026-09-17 16:34 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
a775973c-26e8-44f8-911e-a85421c00484📥 Commits
Reviewing files that changed from the base of the PR and between
c66d977c1dand 1e7eb31819d237eebfafec0710b5689431c65d9d.📒 Files selected for processing (1)
src/loader/timer.cppIncluded review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
📝 Walkthrough
Walkthrough
GetTimenow converts elapsed milliseconds touint64_tand appliesCommon::TIME_MS_IN_DAYmodulo before constructingCommon::Time. This preserves time-of-day formatting after 24 hours and avoids 32-bit overflow effects.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix · Severity of issue fixed: Low
Merge Risk: ⚪ Minimal · up to
1e7ebThe timer now preserves valid time-of-day timestamps beyond 24 hours without introducing a concrete current-head risk.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Comment
@coderabbitai helpto get the list of available commands.