From ed37618db7fe760e0324c0b66f7e3b7b04a07ac6 Mon Sep 17 00:00:00 2001 From: schnorr Date: Tue, 28 Dec 2010 23:19:42 +0000 Subject: [PATCH] [trace] set of initial value of variables to any resource variable details: - otherwise paje won't simulate add/sub variable events git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9322 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/instr/instr_resource_utilization.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/instr/instr_resource_utilization.c b/src/instr/instr_resource_utilization.c index 3308f3cf71..d375bea615 100644 --- a/src/instr/instr_resource_utilization.c +++ b/src/instr/instr_resource_utilization.c @@ -39,11 +39,9 @@ static void __TRACE_surf_check_variable_set_to_zero(double now, xbt_dynar_t array = xbt_dynar_new(sizeof(char *), xbt_free); char *var_cpy = xbt_strdup(variable); xbt_dynar_push(array, &var_cpy); - if (TRACE_categorized ()){ - container_t container = getContainerByName (resource); - type_t type = getVariableType (variable, NULL, container->type); - new_pajeSetVariable (now, container, type, 0); - } + container_t container = getContainerByName (resource); + type_t type = getVariableType (variable, NULL, container->type); + new_pajeSetVariable (now, container, type, 0); xbt_dict_set(platform_variables, resource, array, xbt_dynar_free_voidp); } else { -- 2.20.1