]> AND Public Git Repository - simgrid.git/blobdiff - teshsuite/msg/process.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Parameters were in wrong order.
[simgrid.git] / teshsuite / msg / process.c
index 7691a5237fd54bd836201408036e8417efea0129..e999b4bed0d92bb98f88519dabc16b64abcd6767 100644 (file)
@@ -78,13 +78,13 @@ int main(int argc, char *argv[])
   const char *application_file;
 
   MSG_init(&argc, argv);
-  if (argc < 2) {
+  if (argc != 3) {
     printf("Usage: %s platform_file deployment_file\n", argv[0]);
     printf("example: %s msg_platform.xml msg_deployment.xml\n", argv[0]);
     exit(1);
   }
   platform_file = argv[1];
-  application_file = argv[1];
+  application_file = argv[2];
 
   /* MSG_config("workstation/model","KCCFLN05"); */
   {                             /*  Simulation setting */