Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] we need to close the file
authorschnorr <Lucas.Schnorr@imag.fr>
Thu, 5 Apr 2012 12:57:43 +0000 (14:57 +0200)
committerschnorr <Lucas.Schnorr@imag.fr>
Thu, 5 Apr 2012 12:57:43 +0000 (14:57 +0200)
examples/msg/tracing/user_variables.c

index e249ef3..ea2b959 100644 (file)
@@ -133,6 +133,7 @@ int main(int argc, char *argv[])
   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");
   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;
 
   MSG_clean();
   return 0;