Skip to content

Commit

Permalink
[examples] Fixing the exmaple code in order to fullfil the changes in…
Browse files Browse the repository at this point in the history
… the Space API.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Mar 24, 2020
1 parent 95f73e9 commit 9bd67df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -44,7 +44,7 @@ agent PingAgent {
val taskVar = task("waiting_for_partner")

taskVar.every(1000) [
if (defaultSpace.participants.size > 1) {
if (defaultSpace.numberOfStrongParticipants > 1) {
info("Pong Agent detected.")
info("Sending Ping #0")
emit( new Ping(0) )
Expand Down
Expand Up @@ -60,7 +60,7 @@ agent PingAgent {

val task = task("waiting_for_partner")
task.every(1000) [
if (comspace.participants.size > 1) {
if (comspace.numberOfStrongParticipants > 1) {
info("Pong Agent detected.")
info("Sending Ping #0")
var evt = new Ping(0)
Expand Down

0 comments on commit 9bd67df

Please sign in to comment.