Commit 59ea9f02 authored by David Redondo's avatar David Redondo 🏎

There can be multiple spaces between the first and second column

parent 3c51bd39
......@@ -59,7 +59,7 @@ void LinuxCpuPluginPrivate::update()
stat.open(QIODevice::ReadOnly);
QByteArray line;
for (QByteArray line = stat.readLine(); !line.isNull(); line = stat.readLine()) {
auto values = line.split(' ');
auto values = line.simplified().split(' ');
if (!line.startsWith("cpu")) {
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment