Skip to content

Comments

Fix a crash when viewing an empty interval on a static profile#76

Merged
elliottslaughter merged 1 commit intomasterfrom
fix-crash-empty-interval
May 10, 2025
Merged

Fix a crash when viewing an empty interval on a static profile#76
elliottslaughter merged 1 commit intomasterfrom
fix-crash-empty-interval

Conversation

@elliottslaughter
Copy link
Contributor

If you zoom in far enough, you can view an interval 0 ns in duration. This degenerate situation resulted in a divide by zero when calculating the optimal zoom level for static profiles, but there is nothing to show anyway so just return the empty set.

@elliottslaughter elliottslaughter merged commit 94dc3b2 into master May 10, 2025
14 checks passed
@elliottslaughter elliottslaughter deleted the fix-crash-empty-interval branch May 10, 2025 00:03
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