Skip to content

Commit 82e96fb

Browse files
edward-shenmeta-codesync[bot]
authored andcommitted
Replace Duration::from_secs(60 * 10) to Duration::from_mins(10)
Summary: Rust 1.91 introduced `Duration::from_mins`. This diff replaces some instances of `Duration::from_secs` with the corresponding `Duration::from_mins`. Reviewed By: dillongeorge Differential Revision: D88526937 fbshipit-source-id: 9f1932c9015845771a841b042404d367728436a1
1 parent e4c895d commit 82e96fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eden/mononoke/common/time_measuring/src/speed_sliding_window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ impl BasicSpeedTracker {
131131
pub fn start() -> Self {
132132
let now = Instant::now();
133133
Self {
134-
s_10m: WeightSlidingWindow::start_at(now, Duration::from_secs(60 * 10)),
134+
s_10m: WeightSlidingWindow::start_at(now, Duration::from_mins(10)),
135135
s_1h: WeightSlidingWindow::start_at(now, Duration::from_secs(60 * 60)),
136136
s_1d: WeightSlidingWindow::start_at(now, Duration::from_hours(24)),
137137
}

0 commit comments

Comments
 (0)