This commit is contained in:
OBattler
2023-08-10 16:47:20 +02:00

View File

@@ -37,6 +37,7 @@
#include <QLocalSocket> #include <QLocalSocket>
#include <QTimer> #include <QTimer>
#include <QProcess> #include <QProcess>
#include <QRegularExpression>
#include <QLibrary> #include <QLibrary>
#include <QElapsedTimer> #include <QElapsedTimer>
@@ -712,7 +713,7 @@ plat_get_cpu_string(char *outbuf, uint8_t len) {
if (line.isNull()) { if (line.isNull()) {
break; break;
} }
if(line.contains(QRegExp("model name.*:"))) { if(QRegularExpression("model name.*:").match(line).hasMatch()) {
auto list = line.split(": "); auto list = line.split(": ");
if(!list.last().isEmpty()) { if(!list.last().isEmpty()) {
cpu_string = list.last(); cpu_string = list.last();