Commit 93ac8ef9 authored by Pavel Vainerman's avatar Pavel Vainerman

(RRDStorage): добавил обработку изменения датчиков..

parent 56b35d9e
......@@ -283,7 +283,14 @@ void RRDStorage::sysCommand( UniSetTypes::SystemMessage* sm )
// -----------------------------------------------------------------------------
void RRDStorage::sensorInfo( UniSetTypes::SensorMessage* sm )
{
for( RRDList::iterator it=rrdlist.begin(); it!=rrdlist.end(); ++it )
{
DSMap::iterator s = it->dsmap.find(sm->id);
if( s!=it->dsmap.end() )
s->second.value = sm->value;
// продолжаем искать по другим rrd, т.к. датчик может входить в несколько..
}
}
// -----------------------------------------------------------------------------
void RRDStorage::timerInfo( UniSetTypes::TimerMessage* tm )
......
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