diff options
Diffstat (limited to 'src/osx/btop_collect.cpp')
-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(); |