@@ -4,7 +4,6 @@ use std::{
44    time:: { Duration ,  Instant } , 
55} ; 
66
7- use  capnp:: message:: Builder ; 
87use  chrono:: Local ; 
98use  log:: error; 
109use  sbp:: Sbp ; 
@@ -15,7 +14,7 @@ use crate::constants::{
1514} ; 
1615use  crate :: output:: { CsvLogging ,  SbpLogger } ; 
1716use  crate :: shared_state:: { create_directory,  SharedState } ; 
18- use  crate :: utils:: { bytes_to_human_readable ,   refresh_loggingbar,  serialize_capnproto_builder } ; 
17+ use  crate :: utils:: { refresh_loggingbar,  refresh_loggingbar_recording } ; 
1918use  crate :: { client_sender:: BoxedClientSender ,  shared_state:: ConnectionState } ; 
2019use  crate :: { common_constants:: SbpLogging ,  shared_state:: SbpLoggingStatsState } ; 
2120
@@ -55,32 +54,6 @@ pub fn logging_stats_thread(
5554    } ) 
5655} 
5756
58- pub  fn  refresh_loggingbar_recording ( 
59-     client_sender :  & BoxedClientSender , 
60-     size :  u64 , 
61-     duration :  u64 , 
62-     filename :  Option < String > , 
63- )  { 
64-     let  mut  builder = Builder :: new_default ( ) ; 
65-     let  msg = builder. init_root :: < crate :: console_backend_capnp:: message:: Builder > ( ) ; 
66- 
67-     let  mut  logging_bar_status = msg. init_logging_bar_recording_status ( ) ; 
68-     logging_bar_status. set_recording_duration_sec ( duration) ; 
69-     logging_bar_status. set_recording_size ( & bytes_to_human_readable ( size as  u128 ) ) ; 
70-     if  let  Some ( filename_)  = filename { 
71-         logging_bar_status
72-             . reborrow ( ) 
73-             . get_recording_filename ( ) 
74-             . set_filename ( & filename_) ; 
75-     }  else  { 
76-         logging_bar_status
77-             . reborrow ( ) 
78-             . get_recording_filename ( ) 
79-             . set_none ( ( ) ) ; 
80-     } 
81-     client_sender. send_data ( serialize_capnproto_builder ( builder) ) ; 
82- } 
83- 
8457pub  struct  MainTab  { 
8558    logging_directory :  PathBuf , 
8659    last_csv_logging :  CsvLogging , 
0 commit comments