- snprintf (valuestr, 100, "%f", value);
- snprintf (nowstr, 100, "%f", now);
- snprintf (nowdeltastr, 100, "%f", now+delta);
- snprintf (timekey, 100, "%s%cTime", resource, VARIABLE_SEPARATOR);
- snprintf (valuekey, 100, "%s%cValue", resource, VARIABLE_SEPARATOR);
- snprintf (variablekey, 100, "%s%cVariable", resource, VARIABLE_SEPARATOR);
-
- lastvariable = xbt_dict_get_or_null (method_b_dict, variablekey);
- if (lastvariable == NULL){
- __TRACE_surf_check_variable_set_to_zero (now, variable, resource);
- pajeAddVariable (now, variable, resource, valuestr);
- nowdeltastr_cpy = xbt_strdup (nowdeltastr);
- valuestr_cpy = xbt_strdup (valuestr);
- variable_cpy = xbt_strdup (variable);
- xbt_dict_set (method_b_dict, timekey, nowdeltastr_cpy, xbt_free);
- xbt_dict_set (method_b_dict, valuekey, valuestr_cpy, xbt_free);
- xbt_dict_set (method_b_dict, variablekey, variable_cpy, xbt_free);
- }else{
- lasttime = xbt_dict_get_or_null (method_b_dict, timekey);
- lastvalue = xbt_dict_get_or_null (method_b_dict, valuekey);
+ snprintf(valuestr, 100, "%f", value);
+ snprintf(nowstr, 100, "%f", now);
+ snprintf(nowdeltastr, 100, "%f", now + delta);
+ snprintf(timekey, 100, "%s%cTime", resource, VARIABLE_SEPARATOR);
+ snprintf(valuekey, 100, "%s%cValue", resource, VARIABLE_SEPARATOR);
+ snprintf(variablekey, 100, "%s%cVariable", resource, VARIABLE_SEPARATOR);
+
+ lastvariable = xbt_dict_get_or_null(method_b_dict, variablekey);
+ if (lastvariable == NULL) {
+ __TRACE_surf_check_variable_set_to_zero(now, variable, resource);
+ pajeAddVariable(now, variable, resource, valuestr);
+ nowdeltastr_cpy = xbt_strdup(nowdeltastr);
+ valuestr_cpy = xbt_strdup(valuestr);
+ variable_cpy = xbt_strdup(variable);
+ xbt_dict_set(method_b_dict, timekey, nowdeltastr_cpy, xbt_free);
+ xbt_dict_set(method_b_dict, valuekey, valuestr_cpy, xbt_free);
+ xbt_dict_set(method_b_dict, variablekey, variable_cpy, xbt_free);
+ } else {
+ lasttime = xbt_dict_get_or_null(method_b_dict, timekey);
+ lastvalue = xbt_dict_get_or_null(method_b_dict, valuekey);