Skip to content

Commit

Permalink
wrong return value fixed for mon_monitoring_json
Browse files Browse the repository at this point in the history
  • Loading branch information
rex-schilasky committed Aug 8, 2024
1 parent 304b5f9 commit 655c608
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion ecal/core/include/ecal/ecal_monitoring.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ namespace eCAL
* @return Number of struct elements if succeeded.
**/
ECAL_API int GetMonitoring(eCAL::Monitoring::SMonitoring& mon_, unsigned int entities_ = Entity::All);


/**
* @brief Get monitoring subset as JSON string.
Expand Down
2 changes: 1 addition & 1 deletion ecal/core/src/monitoring/ecal_monitoring_def.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ namespace eCAL
return(0);
}

ECAL_API int GetMonitoringJSON(std::string& mon_, unsigned int entities_)
int GetMonitoringJSON(std::string& mon_, unsigned int entities_)
{
if (g_monitoring() != nullptr) g_monitoring()->GetMonitoringJSON(mon_, entities_);
return((int)mon_.size());
Expand Down
2 changes: 1 addition & 1 deletion lang/python/core/src/ecal_wrap.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ PyObject* mon_monitoring_json(PyObject* /*self*/, PyObject* /*args*/)
{
std::string monitoring_s;
eCAL::Monitoring::GetMonitoringJSON(monitoring_s);
return(Py_BuildValue("s", ecal_getversion()));
return(Py_BuildValue("s", monitoring_s.c_str()));
}

/****************************************/
Expand Down

0 comments on commit 655c608

Please sign in to comment.