Changeset View
Changeset View
Standalone View
Standalone View
dataengines/systemmonitor/systemmonitor.cpp
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 91 | if (id < -1) { | |||
---|---|---|---|---|---|
123 | return; | 123 | return; | ||
124 | } | 124 | } | ||
125 | 125 | | |||
126 | if (id == -1) { | 126 | if (id == -1) { | ||
127 | QSet<QString> sensors; | 127 | QSet<QString> sensors; | ||
128 | m_sensors.clear(); | 128 | m_sensors.clear(); | ||
129 | int count = 0; | 129 | int count = 0; | ||
130 | 130 | | |||
131 | foreach (const QByteArray &sens, answer) { | 131 | for (const QByteArray &sens : answer) { | ||
132 | const QString sensStr{QString::fromUtf8(sens)}; | 132 | const QString sensStr{QString::fromUtf8(sens)}; | ||
133 | const QVector<QStringRef> newSensorInfo = sensStr.splitRef('\t'); | 133 | const QVector<QStringRef> newSensorInfo = sensStr.splitRef('\t'); | ||
134 | if (newSensorInfo.count() < 2) { | 134 | if (newSensorInfo.count() < 2) { | ||
135 | continue; | 135 | continue; | ||
136 | } | 136 | } | ||
137 | if(newSensorInfo.at(1) == QLatin1String("logfile")) | 137 | if(newSensorInfo.at(1) == QLatin1String("logfile")) | ||
138 | continue; // logfile data type not currently supported | 138 | continue; // logfile data type not currently supported | ||
139 | 139 | | |||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |