/// Estimate the percent completion (between 0 and 100) of the sync
/// operation.
///
/// The estimate is based on the idea that the number of dirty bytes
/// will be close to the value it was before the copy operation once
/// sync has completed. After the copy completes, the `current`
/// value will be the same as `after_copy`, and it should decrease
/// as the sync is underway until it reaches `before_copy`.
Estimate the percent completion (between 0 and 100) of the sync
operation.

The estimate is based on the idea that the number of dirty bytes
will be close to the value it was before the copy operation once
sync has completed.
Estimate the percent completion ( between 0 and 100 ) of the sync operation . The estimate is based on the idea that the number of dirty bytes will be close to the value it was before the copy operation once sync has completed .
fn calc_sync_percent(&self) -> i32 {
        let current = self.current.saturating_sub(self.before_copy);
        let max = self.after_copy.saturating_sub(self.before_copy);
        // Flip the value because a lower number of dirty pages is
        // closer to completion.
        100 - calc_percent(current, max)
    }
fn calc_sync_percent ( & self ) -> i32 { let current = self . current . saturating_sub ( self . before_copy ) ; let max = self . after_copy . saturating_sub ( self . before_copy ) ; // Flip the value because a lower number of dirty pages is // closer to completion. 100 - calc_percent ( current , max ) }
Estimate the percent completion (between 0 and 100) of the sync
operation.
Estimate the percent completion ( between 0 and 100 ) of the sync operation .
&self