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
cosmetics
[simgrid.git]
/
examples
/
java
/
energy
/
vm
/
EnergyVMRunner.java
diff --git
a/examples/java/energy/vm/EnergyVMRunner.java
b/examples/java/energy/vm/EnergyVMRunner.java
index
b7a2102
..
4094a20
100644
(file)
--- a/
examples/java/energy/vm/EnergyVMRunner.java
+++ b/
examples/java/energy/vm/EnergyVMRunner.java
@@
-30,6
+30,7
@@
public class EnergyVMRunner extends Process {
try {
task.execute();
} catch (HostFailureException | TaskCancelledException e) {
try {
task.execute();
} catch (HostFailureException | TaskCancelledException e) {
+ Msg.error(e.getMessage());
e.printStackTrace();
}
Msg.info("This worker is done.");
e.printStackTrace();
}
Msg.info("This worker is done.");
@@
-41,10
+42,7
@@
public class EnergyVMRunner extends Process {
}
@Override
}
@Override
- public void main(String[] strings) throws MsgException, HostNotFoundException {
- double startTime = 0;
- double endTime = 0;
-
+ public void main(String[] strings) throws HostNotFoundException, HostFailureException {
/* get hosts */
Host host1 = Host.getByName("MyHost1");
Host host2 = Host.getByName("MyHost2");
/* get hosts */
Host host1 = Host.getByName("MyHost1");
Host host2 = Host.getByName("MyHost2");