Skip to content

Commit

Permalink
Fix amd gpus not fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
charklie authored Apr 1, 2024
1 parent 7141310 commit 44dd2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mods/fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub fn get_gpu_info() -> Result<String, Error> {
if let Some(start_index) = line.find("NVIDIA").or_else(|| line.find("AMD Radeon")) {
let (prefix, prefix_len) = if line.contains("NVIDIA") {
("NVIDIA", "NVIDIA".len())
} else if line.contains("AMD Radeon") {
} else if line.contains("AMD") {
("AMD Radeon", "AMD Radeon".len())
} else {
let vendor_index = line.find("controller").unwrap_or(0);
Expand Down

0 comments on commit 44dd2d6

Please sign in to comment.