Add optional run end time override
This commit is contained in:
parent
6b8ae19ba5
commit
01124d719b
3 changed files with 12 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ async fn save_work(finished: FinishedRun, db: &SqlitePool) -> somehow::Result<()
|
|||
let mut tx = db.begin().await?;
|
||||
let conn = tx.acquire().await?;
|
||||
|
||||
let end = OffsetDateTime::now_utc();
|
||||
let end = finished.end.unwrap_or_else(OffsetDateTime::now_utc);
|
||||
let bench_method = match finished.run.bench_method {
|
||||
BenchMethod::Internal => "internal".to_string(),
|
||||
BenchMethod::Repo { hash } => format!("bench repo, hash {hash}"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue