From 3f784548d294fd3d51d9a27e4166dd36ab1859df Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Fri, 29 Jun 2018 17:55:33 +0200 Subject: [PATCH] Fix breakpoint option It was using relative time deltas instead of absolute time. --- src/simix/smx_global.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index bb06cae843..f0b03adfdb 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -397,7 +397,7 @@ void SIMIX_run() do { XBT_DEBUG("New Schedule Round; size(queue)=%zu", simix_global->process_to_run.size()); - if (simgrid::simix::breakpoint >= 0.0 && time >= simgrid::simix::breakpoint) { + if (simgrid::simix::breakpoint >= 0.0 && surf_get_clock() >= simgrid::simix::breakpoint) { XBT_DEBUG("Breakpoint reached (%g)", simgrid::simix::breakpoint.get()); simgrid::simix::breakpoint = -1.0; #ifdef SIGTRAP -- 2.20.1