- pajeDefineVariableType(variable, "HOST", variable);
- } else if (strcmp(what, "set") == 0) {
- pajeSetVariable(time, variable, MSG_host_self()->name, valuestr);
- } else if (strcmp(what, "add") == 0) {
- pajeAddVariable(time, variable, MSG_host_self()->name, valuestr);
- } else if (strcmp(what, "sub") == 0) {
- pajeSubVariable(time, variable, MSG_host_self()->name, valuestr);
+ instr_new_user_host_variable_type (variable, NULL);
+ } else{
+ char *host_name = MSG_host_self()->name;
+ char *variable_id = instr_variable_type(variable, host_name);
+ char *resource_id = instr_resource_type(host_name);
+ if (strcmp(what, "set") == 0) {
+ pajeSetVariable(time, variable_id, resource_id, valuestr);
+ } else if (strcmp(what, "add") == 0) {
+ pajeAddVariable(time, variable_id, resource_id, valuestr);
+ } else if (strcmp(what, "sub") == 0) {
+ pajeSubVariable(time, variable_id, resource_id, valuestr);
+ }