diff options
author | iximeow <me@iximeow.net> | 2023-07-02 16:34:22 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2023-07-02 16:34:22 -0700 |
commit | 0e331903f85a7c525db6ac982968d0226d74d281 (patch) | |
tree | 54f827f33f4e18fa55123a5693955582138b3e51 | |
parent | da45378ffdace5aacc63b2f85ebbab4c3fe265c1 (diff) |
actually capture cpu family for ... cpu family ...
-rw-r--r-- | src/ci_runner.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |