From acfd3860433a79c8620f7976ba1764d04253675b Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 13 Feb 2021 22:11:40 +0100 Subject: [PATCH] Fix parallel execs after my change of yesterday The default timeout of parallel exec was 0. It was not an issue before my fix of yesterday, which aimed at obeying timeout=0 when given. The fix is simply to use a negative value meaning "infinite" as a default value. --- include/simgrid/s4u/Exec.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/simgrid/s4u/Exec.hpp b/include/simgrid/s4u/Exec.hpp index 72d0e2e161..a5d1079494 100644 --- a/include/simgrid/s4u/Exec.hpp +++ b/include/simgrid/s4u/Exec.hpp @@ -33,7 +33,7 @@ class XBT_PUBLIC Exec : public Activity_T { friend kernel::activity::ExecImpl; double priority_ = 1.0; double bound_ = 0.0; - double timeout_ = 0.0; + double timeout_ = -1.0; // Infinite timeout by default std::vector flops_amounts_; std::vector bytes_amounts_; std::vector hosts_; -- 2.20.1