Skip to content

Commit

Permalink
Added the service name to the ServiceTreeItem identifier so that diff…
Browse files Browse the repository at this point in the history
…erent services running on the same process with the same methods don't get accidentally de-duped.
  • Loading branch information
mclarkk authored and FlorianReimold committed Apr 22, 2024
1 parent 26ce5bf commit 2421a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/mon/mon_gui/src/widgets/models/service_tree_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ int ServiceTreeItem::type() const

std::string ServiceTreeItem::generateIdentifier(const eCAL::pb::Service& service, const eCAL::pb::Method& method)
{
return std::to_string(service.pid()) + "@" + service.hname() + "@" + method.mname();
return std::to_string(service.pid()) + "@" + service.hname() + "@" + service.sname() + "@" + method.mname();
}

std::string ServiceTreeItem::identifier() const
Expand Down

0 comments on commit 2421a38

Please sign in to comment.