feat: restore multithreaded processing

This commit is contained in:
2024-03-31 16:30:33 +03:00
parent ac52888b0d
commit 960640f5bc
9 changed files with 25 additions and 62 deletions

View File

@ -73,10 +73,7 @@ void ExtSysMonSensor::update()
void ExtSysMonSensor::loadProperties()
{
auto sensors = m_source->sources();
for (auto sensor = sensors.cbegin(); sensor != sensors.cend(); ++sensor) {
auto source = sensor.key();
auto info = sensor.value();
for (auto [source, info] : m_source->sources().asKeyValueRange()) {
auto property = new KSysGuard::SensorProperty(source, info->name, this);
property->setUnit(info->unit);