Trim the newline from the resulting string on macOS
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user