- pajeCreateContainer(MSG_get_clock(), category, type, parent_category, category);
+ pajeCreateContainer(MSG_get_clock(), category, type, parent_category,
+ category);
+
+ char final_color[INSTR_DEFAULT_STR_SIZE];
+ if (!color){
+ //generate a random color
+ double red = drand48();
+ double green = drand48();
+ double blue = drand48();
+ snprintf (final_color, INSTR_DEFAULT_STR_SIZE, "%f %f %f", red, green, blue);
+ }else{
+ snprintf (final_color, INSTR_DEFAULT_STR_SIZE, "%s", color);
+ }