File tree Expand file tree Collapse file tree
crates/recording/examples Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,14 +91,12 @@ async fn run_recording_benchmark(
9191 println ! ( " Bitrate: {bitrate_mbps:.2} Mbps" ) ;
9292 }
9393
94- if include_camera {
95- if let Ok ( metadata) = std:: fs:: metadata ( content_dir. join ( "camera.mp4" ) ) {
96- let size_mb = metadata. len ( ) as f64 / ( 1024.0 * 1024.0 ) ;
97- let bitrate_mbps = size_mb * 8.0 / config. duration_secs as f64 ;
98- println ! ( "\n Camera recording:" ) ;
99- println ! ( " Size: {size_mb:.2} MB" ) ;
100- println ! ( " Bitrate: {bitrate_mbps:.2} Mbps" ) ;
101- }
94+ if include_camera && let Ok ( metadata) = std:: fs:: metadata ( content_dir. join ( "camera.mp4" ) ) {
95+ let size_mb = metadata. len ( ) as f64 / ( 1024.0 * 1024.0 ) ;
96+ let bitrate_mbps = size_mb * 8.0 / config. duration_secs as f64 ;
97+ println ! ( "\n Camera recording:" ) ;
98+ println ! ( " Size: {size_mb:.2} MB" ) ;
99+ println ! ( " Bitrate: {bitrate_mbps:.2} Mbps" ) ;
102100 }
103101
104102 std:: mem:: forget ( dir) ;
You can’t perform that action at this time.
0 commit comments