Skip to content

fix(runtime): avoid overflow in live statistics#953

Merged
gbin merged 1 commit into
masterfrom
gbin/monitoring-stats-overflow
Mar 25, 2026
Merged

fix(runtime): avoid overflow in live statistics#953
gbin merged 1 commit into
masterfrom
gbin/monitoring-stats-overflow

Conversation

@gbin

@gbin gbin commented Mar 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

If a pause of ~4s happened between 2 messages it will overflow 64bit picking up the square value as nanoseconds

Related issues

  • Closes #

Changes

Testing

  • just fmt
  • just lint
  • just test
  • optional full just std-ci (if std/runtime paths are impacted)
  • optional full just nostd-ci (if embedded/no_std paths are impacted)
  • Other (please specify):

pro-tip: just with no parameters in the root defaults to just fmt, just lint, and just test.

Checklist

  • I have updated docs or examples where needed
  • I have added or updated tests where needed
  • I have considered platform impact (Linux/macOS/Windows/embedded)
  • I have considered config/logging changes (if applicable)
  • This change is not a breaking change (or I documented it below)

Breaking changes (if any)

Additional context

@gbin gbin added bug Something isn't working include in changelog labels Mar 25, 2026
@gbin gbin merged commit 89fbe37 into master Mar 25, 2026
24 of 25 checks passed
@gbin gbin deleted the gbin/monitoring-stats-overflow branch March 25, 2026 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working include in changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant