Skip to content

Commit e4c895d

Browse files
edward-shenmeta-codesync[bot]
authored andcommitted
Replace Duration::from_secs(60 * 60 * 24) to Duration::from_hours(24)
Summary: Rust 1.91 introduced `Duration::from_hours`. This diff replaces some instances of `Duration::from_secs` with the corresponding `Duration::from_hours`. Reviewed By: dillongeorge Differential Revision: D88526068 fbshipit-source-id: e165ebad88656ce48fa050ba2660aa97cd28c916
1 parent 522e027 commit e4c895d

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
@@ -133,7 +133,7 @@ impl BasicSpeedTracker {
133133
Self {
134134
s_10m: WeightSlidingWindow::start_at(now, Duration::from_secs(60 * 10)),
135135
s_1h: WeightSlidingWindow::start_at(now, Duration::from_secs(60 * 60)),
136-
s_1d: WeightSlidingWindow::start_at(now, Duration::from_secs(60 * 60 * 24)),
136+
s_1d: WeightSlidingWindow::start_at(now, Duration::from_hours(24)),
137137
}
138138
}
139139

0 commit comments

Comments
 (0)