diff options
author | masiboss <32394683+masiboss@users.noreply.github.com> | 2023-12-07 19:23:58 +0100 |
---|---|---|
committer | masiboss <32394683+masiboss@users.noreply.github.com> | 2023-12-07 19:23:58 +0100 |
commit | 23698940df1b387d131a250f754f3f47b8480833 (patch) | |
tree | 7cf465ca2be8084a1d37786d89178ceadfb553a0 | |
parent | 0d357468b50a13b48868b4969b4f19000c90d5d6 (diff) |
strip "Apple" from name of Apple silicon chips
-rw-r--r-- | src/osx/btop_collect.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osx/btop_collect.cpp b/src/osx/btop_collect.cpp index 0a1f338..4e8a692 100644 --- a/src/osx/btop_collect.cpp +++ b/src/osx/btop_collect.cpp @@ -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(); |