Easier to parse.

This commit is contained in:
Nicolas Patry 2024-01-29 12:02:42 +01:00
parent 497d1518be
commit e19d6f3589

View File

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