Skip to content

fix(session-replay): Fix conversion of frame rate to time interval #6624

@github-actions

Description

@github-actions

Note

The pull request "fix(session-replay): Fix conversion of frame rate to time interval" was created by @philprime but did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.

When using @_spi(Private) import Sentry it is possible to set a higher frame rate using options.sessionReplay.frameRate = 10.

Due to a UInt / UInt this will result in a time interval since last frame of 0 ms instead of e.g. 100ms.

This PR fixes the division.

No changelog needed because frameRate is internal.

#skip-changelog

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions