Skip to content

Commit 3296fb0

Browse files
committed
feat: Improve messages on NetworkVmExampleAbstract
Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
1 parent 05efc83 commit 3296fb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/cloudbus/cloudsim/examples/network/applications/NetworkVmExampleAbstract.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,13 @@ private void showSimulationResults() {
136136
broker.getName(), broker.getId(), newCloudletList.size());
137137
}
138138

139+
System.out.println();
139140
for(NetworkHost host: datacenter.getHostList()){
140-
System.out.printf("%nHost %d data transferred: %d bytes",
141+
System.out.printf("Host %d data transferred: %d bytes%n",
141142
host.getId(), host.getTotalDataTransferBytes());
142143
}
143144

144-
System.out.println(getClass().getSimpleName() + " finished!");
145+
System.out.printf("%n%s finished!%n", getClass().getSimpleName());
145146
}
146147

147148
/**

0 commit comments

Comments
 (0)