Skip to content
Snippets Groups Projects
Commit 453e05f3 authored by shinedday's avatar shinedday
Browse files

Fix : amas publish metrics issue

parent 8efe556a
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -87,7 +87,7 @@ class Amas(Schedulable, SSHClient): ...@@ -87,7 +87,7 @@ class Amas(Schedulable, SSHClient):
""" """
share the metric of agent 2 to agent 1 share the metric of agent 2 to agent 1
""" """
self.publish("amas/agent/" + str(id_agent1) + "/neighbor", self.agents_metric[id_agent2]) self.publish("amas/agent/" + str(id_agent1) + "/neighbor", str(self.agents_metric[id_agent2]))
def agent_log(self, client, userdata, message) -> None: def agent_log(self, client, userdata, message) -> None:
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment