Trim the newline from the resulting string on macOS

This commit is contained in:
cold-brewed
2024-04-01 08:58:43 -04:00
parent c6289fd85a
commit 165ad489ef

View File

@@ -686,7 +686,7 @@ plat_get_cpu_string(char *outbuf, uint8_t len) {
return;
}
QByteArray result = process->readAll();
auto command_result = QString(result).split(": ").last();
auto command_result = QString(result).split(": ").last().trimmed();
if(!command_result.isEmpty()) {
cpu_string = command_result;
}