Skip to content

Commit

Permalink
Update JControlZMQ
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Jul 2, 2024
1 parent c1f3fde commit 530baf5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugins/janacontrol/src/JControlZMQ.cc
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,9 @@ std::string JControlZMQ::GetJANAFactoryListJSON()
JSONADD( ss,"PID" , _pid );
ss << ",\n" << R"("factories":[)";

auto component_summary = _japp->GetComponentSummary();
const auto& component_summary = _japp->GetComponentSummary();
bool is_first = true;
for( auto fac_summary : component_summary.factories ){
for( const auto& fac_summary : component_summary.factories ){

int indent_level = 2;
if( !is_first ) ss << ",";
Expand Down Expand Up @@ -645,7 +645,6 @@ std::string JControlZMQ::GetJANAObjectListJSON(){
JSONADD( ss,"event_number" , _jproc->GetEventNumber() );
ss << ",\n" << R"("factories":[)";

auto component_summary = _japp->GetComponentSummary();
bool is_first = true;
for( auto pfac_summary : factory_object_counts ){

Expand Down

0 comments on commit 530baf5

Please sign in to comment.