Skip to content

Commit 53d803d

Browse files
Shorten commit in self-profile views
1 parent 566e4d2 commit 53d803d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

site/src/server.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,12 @@ pub async fn handle_self_profile_processed_download(
842842
params: HashMap<String, String>,
843843
data: &InputData,
844844
) -> Response {
845-
let title = format!("{}: {} {}", body.commit, body.benchmark, body.run_name);
845+
let title = format!(
846+
"{}: {} {}",
847+
&body.commit[..std::cmp::min(7, body.commit.len())],
848+
body.benchmark,
849+
body.run_name
850+
);
846851
let start = Instant::now();
847852
let pieces = match crate::self_profile::get_pieces(body, data).await {
848853
Ok(v) => v,

0 commit comments

Comments
 (0)