}
/* let throttle the communication for taskD if its parent is SD_DONE */
if (SD_task_get_state(taskC) == SD_DONE)
- SD_task_set_rate(taskD, 0.5);
+ SD_task_set_rate(taskD, 50);
}
XBT_DEBUG("Destroying tasks...");
> [2.300300] [sd_comm_throttling/INFO] Simulation stopped after 2.3003 seconds
> [2.300300] [sd_comm_throttling/INFO] Task 'Task B' start time: 1.000000, finish time: 1.300300
> [2.300300] [sd_comm_throttling/INFO] Task 'Task C' start time: 1.300300, finish time: 2.300300
-> [5.300600] [sd_comm_throttling/INFO] Simulation stopped after 5.3006 seconds
-> [5.300600] [sd_comm_throttling/INFO] Task 'Task D' start time: 2.300300, finish time: 4.300600
-> [5.300600] [sd_comm_throttling/INFO] Task 'Task E' start time: 4.300600, finish time: 5.300600
+> [3.600600] [sd_comm_throttling/INFO] Simulation stopped after 3.6006 seconds
+> [3.600600] [sd_comm_throttling/INFO] Task 'Task D' start time: 2.300300, finish time: 2.600600
+> [3.600600] [sd_comm_throttling/INFO] Task 'Task E' start time: 2.600600, finish time: 3.600600
* a task can use.
*
* \param task a task
- * \param rate the new rate you want to associate with this task
+ * \param rate the new rate (in percent) you want to associate with this task
*/
void SD_task_set_rate(SD_task_t task, double rate)
{