A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix sonar warnings
[simgrid.git]
/
examples
/
python
/
task-variable-load
/
task-variable-load.py
diff --git
a/examples/python/task-variable-load/task-variable-load.py
b/examples/python/task-variable-load/task-variable-load.py
index
5e437e3
..
a8c9cc0
100644
(file)
--- a/
examples/python/task-variable-load/task-variable-load.py
+++ b/
examples/python/task-variable-load/task-variable-load.py
@@
-32,12
+32,12
@@
def callback( t):
def variable_load( t):
print('--- Small load ---')
def variable_load( t):
print('--- Small load ---')
- for
i
in range(3):
+ for
_
in range(3):
t.enqueue_execs(1)
this_actor.sleep_for(100)
this_actor.sleep_for(1000)
print('--- Heavy load ---')
t.enqueue_execs(1)
this_actor.sleep_for(100)
this_actor.sleep_for(1000)
print('--- Heavy load ---')
- for
i
in range(3):
+ for
_
in range(3):
t.enqueue_execs(1)
this_actor.sleep_for(1)
t.enqueue_execs(1)
this_actor.sleep_for(1)