Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

clippy

Richie McIlroybdb8f82d3ce9
diff --git a/crates/recording/src/sources/screen_capture/macos.rs b/crates/recording/src/sources/screen_capture/macos.rs
index 9470919fd..cc1cef390 100644
--- a/crates/recording/src/sources/screen_capture/macos.rs
+++ b/crates/recording/src/sources/screen_capture/macos.rs
@@ -309,7 +309,7 @@ impl ScreenCaptureConfig<CMSampleBufferCapture> {
let count =
scaled_frame_count.fetch_add(1, atomic::Ordering::Relaxed)
+ 1;
- if count % 300 == 0 {
+ if count.is_multiple_of(300) {
debug!(scaled_frames = count, "Scaling frames");
}