File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/InstanaAgent/Monitors/Performance Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class FramerateDropMonitor {
3636 let proxy = DisplayLinkProxy ( )
3737 displayLink = CADisplayLink ( target: proxy, selector: #selector( proxy. onDisplayLinkUpdate) )
3838 proxy. proxied = self
39- displayLink. add ( to: RunLoop . main, forMode: . common )
39+ displayLink. add ( to: . main, forMode: . default )
4040
4141 InstanaApplicationStateHandler . shared. listen { [ weak self] state in
4242 guard let self = self else { return }
@@ -85,7 +85,7 @@ class FramerateDropMonitor {
8585 dropStart = samplingStart
8686 runningAverage = Float ( fps)
8787 consecutiveFrameDrop = 1
88- case ( true , _? ) :
88+ case ( true , _) :
8989 consecutiveFrameDrop += 1
9090 runningAverage -= runningAverage / Float( consecutiveFrameDrop)
9191 runningAverage += Float ( fps) / Float( consecutiveFrameDrop)
You can’t perform that action at this time.
0 commit comments