pub fn refresh_stats(&mut self) {
        if !self.stat_buffer.is_empty() {
            self.clean_old_stats();
        }
        self.stat_buffer.insert(0, self.read_stats().unwrap());
    }
/// Generates a new CPUStat object storing current usage statistics of the socket
/// and stores it in the stat_buffer.
Generates a new CPUStat object storing current usage statistics of the socket
and stores it in the stat_buffer.
Generates a new CPUStat object storing current usage statistics of the socket and stores it in the stat_buffer .
pub fn refresh_stats(&mut self) {
        if !self.stat_buffer.is_empty() {
            self.clean_old_stats();
        }
        self.stat_buffer.insert(0, self.read_stats().unwrap());
    }
pub fn refresh_stats ( & mut self ) { if ! self . stat_buffer . is_empty ( ) { self . clean_old_stats ( ) ; } self . stat_buffer . insert ( 0 , self . read_stats ( ) . unwrap ( ) ) ; }
Generates a new CPUStat object storing current usage statistics of the socket
and stores it in the stat_buffer.
Generates a new CPUStat object storing current usage statistics of the socket and stores it in the stat_buffer .
&mut self
&mut self