From 1ef708e478bb80d5435b8ed047e5229a7ceffd18 Mon Sep 17 00:00:00 2001 From: armanriazi Date: Thu, 9 Apr 2020 09:07:56 +0000 Subject: [PATCH] Update BasicClustering.java On results we will have number jobs precisely - From StagIn to Jpeg so we are observing one more record on results --- sources/org/workflowsim/clustering/BasicClustering.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/org/workflowsim/clustering/BasicClustering.java b/sources/org/workflowsim/clustering/BasicClustering.java index 0e34bb79..7bb4e734 100644 --- a/sources/org/workflowsim/clustering/BasicClustering.java +++ b/sources/org/workflowsim/clustering/BasicClustering.java @@ -167,7 +167,7 @@ protected final Job addTasks2Job(List taskList) { int priority = 0; int depth = 0; /// a bug of cloudsim makes it final of input file size and output file size - Job job = new Job(idIndex, length/*, inputFileSize, outputFileSize*/); + Job job = new Job(idIndex + 1 , length/*, inputFileSize, outputFileSize*/); job.setClassType(ClassType.COMPUTE.value); for (Task task : taskList) { length += task.getCloudletLength();