From 36b5f53e238ee18fd5f0adeeac1bf902dce74ec0 Mon Sep 17 00:00:00 2001 From: Etienne Pallier Date: Mon, 1 Apr 2019 18:20:09 +0200 Subject: [PATCH] bugfix agent simulator --- README.md | 4 ++-- src/agent/Agent.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 83b7504..13dab15 100644 --- a/README.md +++ b/README.md @@ -71,9 +71,9 @@ Date: 01/04/2019 Author: E. Pallier -VERSION: 0.20.34 +VERSION: 0.20.35 -Comment: Ajout informations plus précises sur statut commande + Bugfix simulateur sur "abort" +Comment: TODO ??? Agent sender peut marquer "expired" une commande qu'il a envoyée - Scenario de test : - lancer agents A et B en mode simu (option -t): ./pyros.py -t start agentA,agentB diff --git a/src/agent/Agent.py b/src/agent/Agent.py index f791a98..a979937 100755 --- a/src/agent/Agent.py +++ b/src/agent/Agent.py @@ -1215,7 +1215,7 @@ class Agent: if self.next_cmdts and self.next_cmdts.name == "abort": # Wait a little to give a chance to agentB to start execution of current command, # so that we can abort it then (otherwise it won't be aborted!!) - time.sleep(2) + time.sleep(4) self.cmdts = self.next_cmdts self.next_cmdts = None self.print("***") -- libgit2 0.21.2