summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-07-02 16:34:22 -0700
committeriximeow <me@iximeow.net>2023-07-02 16:34:22 -0700
commit0e331903f85a7c525db6ac982968d0226d74d281 (patch)
tree54f827f33f4e18fa55123a5693955582138b3e51 /src
parentda45378ffdace5aacc63b2f85ebbab4c3fe265c1 (diff)
actually capture cpu family for ... cpu family ...
Diffstat (limited to 'src')
-rw-r--r--src/ci_runner.rs2
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();