Cleanups
This commit is contained in:
parent
ad5f62b9b9
commit
3067ad21d5
3 changed files with 19 additions and 18 deletions
|
|
@ -19,6 +19,12 @@ pub struct SpeedEstimator {
|
|||
time_remaining_millis: AtomicU64,
|
||||
}
|
||||
|
||||
impl Default for SpeedEstimator {
|
||||
fn default() -> Self {
|
||||
Self::new(5)
|
||||
}
|
||||
}
|
||||
|
||||
impl SpeedEstimator {
|
||||
pub fn new(window_seconds: usize) -> Self {
|
||||
assert!(window_seconds > 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue