Skip to content

Commit e473786

Browse files
authored
Merge pull request #1660 from Kobzol/estimation-pr-ext
Fix spelling of perf. run estimation PR comment
2 parents 63870d3 + 3e7a03d commit e473786

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

site/src/github.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,16 @@ pub async fn enqueue_shas(
287287

288288
// At this point, the queue should also contain the commit that we're mentioning below.
289289
let other_artifact_count = artifacts_in_queue.saturating_sub(1);
290+
291+
let verb = if other_artifact_count == 1 {
292+
"is"
293+
} else {
294+
"are"
295+
};
290296
let suffix = if other_artifact_count == 1 { "" } else { "s" };
291297
let queue_msg = format!(
292-
r#"There are currently {other_artifact_count} other artifact{suffix} in the [queue](https://perf.rust-lang.org/status.html).
293-
It will probably take at least ~{:.2} hours until the benchmark run finishes."#,
298+
r#"There {verb} currently {other_artifact_count} other artifact{suffix} in the [queue](https://perf.rust-lang.org/status.html).
299+
It will probably take at least ~{:.1} hours until the benchmark run finishes."#,
294300
(expected_duration / 3600.0)
295301
);
296302

0 commit comments

Comments
 (0)