fix(about): CPU model name fetched twice
This commit is contained in:
parent
2d66960671
commit
d7ee250c32
1 changed files with 1 additions and 0 deletions
|
|
@ -183,6 +183,7 @@ pub fn processor_name(bump: &Bump, name: &mut String) {
|
||||||
if let Some(info) = line.strip_prefix("model name") {
|
if let Some(info) = line.strip_prefix("model name") {
|
||||||
if let Some(info) = info.trim_start().strip_prefix(':') {
|
if let Some(info) = info.trim_start().strip_prefix(':') {
|
||||||
name.push_str(info.trim());
|
name.push_str(info.trim());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue