X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d5a1db1d0b268cb9ed8f37246fd970fce7631943..c0c6ff6136ed5d29f3b688b0772278ccfea8ac69:/src/instr/instr_surf.c diff --git a/src/instr/instr_surf.c b/src/instr/instr_surf.c index de520c9112..73926c9050 100644 --- a/src/instr/instr_surf.c +++ b/src/instr/instr_surf.c @@ -24,7 +24,7 @@ void TRACE_surf_release(void) void TRACE_surf_host_set_power(double date, const char *resource, double power) { - if (!TRACE_is_active()) + if (!TRACE_is_enabled()) return; container_t container = getContainerByName(resource); @@ -34,7 +34,7 @@ void TRACE_surf_host_set_power(double date, const char *resource, double power) void TRACE_surf_link_set_bandwidth(double date, const char *resource, double bandwidth) { - if (!TRACE_is_active()) + if (!TRACE_is_enabled()) return; container_t container = getContainerByName(resource); @@ -45,7 +45,7 @@ void TRACE_surf_link_set_bandwidth(double date, const char *resource, double ban //FIXME: this function is not used (latency availability traces support exists in surf network models?) void TRACE_surf_link_set_latency(double date, const char *resource, double latency) { - if (!TRACE_is_active()) + if (!TRACE_is_enabled()) return; container_t container = getContainerByName(resource); @@ -70,7 +70,7 @@ void TRACE_surf_gtnets_destroy(void *action) void TRACE_surf_action(surf_action_t surf_action, const char *category) { - if (!TRACE_is_active()) + if (!TRACE_is_enabled()) return; if (!TRACE_categorized ()) return;