-/* Copyright (c) 2006, 2007, 2008, 2009, 2010. The SimGrid Team.
+/* Copyright (c) 2006-2010, 2012-2013. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
}
/* let throttle the communication for taskD if its parent is SD_DONE */
+ /* the bandwidth is 1.25e8, the data size is 1e7, and we want to throttle
+ * the bandwidth by a factor 2. the rate is then 1.25e8/(2*1e7)=6.25
+ */
if (SD_task_get_state(taskC) == SD_DONE)
- SD_task_set_rate(taskD, 0.5);
+ SD_task_set_rate(taskD, 6.25);
+ xbt_dynar_free_container(&changed_tasks);
}
+ xbt_dynar_free_container(&changed_tasks);
XBT_DEBUG("Destroying tasks...");