Skip to content

Commit

Permalink
monitoring loop fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-schilasky committed Feb 3, 2024
1 parent c4b99af commit 47c2eeb
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/core/src/monitoring/ecal_monitoring_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ namespace eCAL
std::string topic_datatype_encoding = sample_topic.tdatatype.encoding;
std::string topic_datatype_name = sample_topic.tdatatype.name;
std::string topic_datatype_desc = sample_topic.tdatatype.desc;
auto attr = sample_topic.attr;
auto attr = sample_topic.attr;

// try to get topic info
const std::string topic_name_id = topic_name + topic_id;
Expand Down Expand Up @@ -458,16 +458,15 @@ namespace eCAL
// update flexible content
ServerInfo.rclock++;
ServerInfo.methods.clear();
for (int i = 0; i < sample_.service.methods.size(); ++i)
for (const auto& sample_service_method : sample_.service.methods)
{
struct Monitoring::SMethodMon method;
auto sample_service_methods = sample_.service.methods[i];
method.mname = sample_service_methods.mname;
method.req_type = sample_service_methods.req_type;
method.req_desc = sample_service_methods.req_desc;
method.resp_type = sample_service_methods.resp_type;
method.resp_desc = sample_service_methods.resp_desc;
method.call_count = sample_service_methods.call_count;
method.mname = sample_service_method.mname;
method.req_type = sample_service_method.req_type;
method.req_desc = sample_service_method.req_desc;
method.resp_type = sample_service_method.resp_type;
method.resp_desc = sample_service_method.resp_desc;
method.call_count = sample_service_method.call_count;
ServerInfo.methods.push_back(method);
}

Expand Down

0 comments on commit 47c2eeb

Please sign in to comment.