From 0e331903f85a7c525db6ac982968d0226d74d281 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sun, 2 Jul 2023 16:34:22 -0700 Subject: actually capture cpu family for ... cpu family ... --- src/ci_runner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ci_runner.rs b/src/ci_runner.rs index 6356dcb..eba4a18 100644 --- a/src/ci_runner.rs +++ b/src/ci_runner.rs @@ -501,7 +501,7 @@ mod host_info { let model_name = model_names.first().expect("can get model name").to_string().split(":").last().unwrap().trim().to_string(); let cores = model_names.len() as u32; let vendor_id = cpu_lines.iter().find(|line| line.starts_with("vendor_id")).expect("vendor_id line is present").split(":").last().unwrap().trim().to_string(); - let family = cpu_lines.iter().find(|line| line.starts_with("vendor_id")).expect("vendor_id line is present").split(":").last().unwrap().trim().to_string(); + let family = cpu_lines.iter().find(|line| line.starts_with("cpu family")).expect("vendor_id line is present").split(":").last().unwrap().trim().to_string(); let model = cpu_lines.iter().find(|line| line.starts_with("model\t")).expect("vendor_id line is present").split(":").last().unwrap().trim().to_string(); let microcode = cpu_lines.iter().find(|line| line.starts_with("microcode")).expect("microcode line is present").split(":").last().unwrap().trim().to_string(); -- cgit v1.1