X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0e93a6a4400978f6473c813eb434437ab540b2d..bfffef69e1b0554d13eec920f1a32f75b49ceac6:/examples/python/exec-ptask/exec-ptask.py diff --git a/examples/python/exec-ptask/exec-ptask.py b/examples/python/exec-ptask/exec-ptask.py index d5ddb6a4eb..fa0a2c2154 100644 --- a/examples/python/exec-ptask/exec-ptask.py +++ b/examples/python/exec-ptask/exec-ptask.py @@ -1,4 +1,4 @@ -# Copyright (c) 2018-2022. The SimGrid Team. All rights reserved. +# Copyright (c) 2018-2023. The SimGrid Team. All rights reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of the license (GNU LGPL) which comes with this package. @@ -76,11 +76,11 @@ def runner(): this_actor.info(" What was already done is removed, and the load of the removed host is shared between remaining ones.") for i in range(2): # remove what we've done so far, for both comm and compute load - computation_amounts[i] *= remaining_ratio + computation_amounts[i] *= remaining_ratio communication_amounts[i] *= remaining_ratio # The work from 1 must be shared between 2 remaining ones. 1/2=50% of extra work for each - computation_amounts[i] *= 1.5; - communication_amounts[i] *= 1.5; + computation_amounts[i] *= 1.5 + communication_amounts[i] *= 1.5 hosts = hosts[:2] computation_amounts = computation_amounts[:2] remaining_comm = communication_amounts[1]