int master(int argc, char *argv[])
{
- char *hostname = MSG_host_self()->name;
+ const char *hostname = MSG_host_get_name(MSG_host_self());
int i;
//the hostname has an empty HDD with a capacity of 100000 (bytes)
fprintf (fp, " host = {\n type = square;\n size = HDD_capacity; \n values = (HDD_utilization);\n };\n");
fprintf (fp, " link = {\n type = rhombus;\n size = bandwidth;\n };\n");
fprintf (fp, "}\n");
+ fclose (fp);
MSG_clean();
return 0;