Skip to content

Commit

Permalink
strip "Apple" from name of Apple silicon chips
Browse files Browse the repository at this point in the history
  • Loading branch information
masiboss committed Dec 7, 2023
1 parent 0d35746 commit 2369894
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/osx/btop_collect.cpp
Expand Up @@ -227,6 +227,9 @@ namespace Cpu {
name = name_vec.at(cpu_pos + 1);
else
name.clear();
} else if (v_contains(name_vec, "Apple"s)) {
auto apple_pos = v_index(name_vec, "Apple"s);
name = (apple_pos < name_vec.size() - 1 ? name_vec.at(apple_pos + 1) : "");
} else
name.clear();

Expand Down

0 comments on commit 2369894

Please sign in to comment.