This commit is contained in:
Nicolas Patry 2024-01-29 12:21:49 +01:00
parent a7a98c0253
commit 6ff36feac9

View File

@ -988,8 +988,8 @@ fn compute_type(num_shard: usize) -> Option<String> {
.output()
.ok()?;
let output = String::from_utf8(output.stdout).ok()?;
let fullname = output.split("\n").nth(1)?;
let cardname = fullname.replace(" ", "-").to_lowercase();
let fullname = output.split('\n').nth(1)?;
let cardname = fullname.replace(' ', "-").to_lowercase();
let compute_type = format!("{num_shard}-{cardname}");
Some(compute_type)
}