Commit f411627d authored by Benardi's avatar Benardi
Browse files

Remove conditional that always fails on VmUtilizationHistory.

parent a0f0f2f4
......@@ -117,8 +117,6 @@ public class CsvGenerator {
for(Host h : existingHosts){
int moment = 0;
double[] history = h.getUtilizationHistory();
writer.append(String.valueOf(history.length));
writer.append('\n');
for(int i = 0; i < history.length; i++) {
writer.append(String.valueOf(h.getDatacenter().getId()));
writer.append(',');
......
......@@ -102,7 +102,7 @@ public class VmUtilizationHistory implements UtilizationHistory {
return;
}
if (time > getPreviousTime() && (time - 0.1) % vm.getHost().getDatacenter().getSchedulingInterval() == 0) {
if (time > getPreviousTime()) {
final double utilization = vm.getCpuPercentUsage(vm.getCloudletScheduler().getPreviousTime());
if (time != 0 ) {
addUtilizationHistoryValue(utilization);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment