Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Useless parentheses.
[simgrid.git] / teshsuite / simdag / availability / availability.c
index 20867ee..13ec72f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2020. The SimGrid Team.
+/* Copyright (c) 2013-2021. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -31,7 +31,7 @@ static void scheduleDAX(const_xbt_dynar_t dax)
         SD_task_schedulel(task, 1, hosts[0]);
       } else {
         XBT_INFO("Scheduling %s to node: %s", SD_task_get_name(task), sg_host_get_name(hosts[(cursor) % totalHosts]));
-        SD_task_schedulel(task, 1, hosts[(cursor) % totalHosts]);
+        SD_task_schedulel(task, 1, hosts[cursor % totalHosts]);
       }
     }
   }