diff --git a/allocate.c b/allocate.c index 8a8fdf41bbce077412d6904ddb15b1c41772e17a..ccf8721a6e201f6aba8fba62797154d77b4d6831 100644 --- a/allocate.c +++ b/allocate.c @@ -191,6 +191,7 @@ int main(int argc, char *argv[]) { currNode = currNode->next; if (currNode) currProc = currNode->data; } + // Log started processes. for (int j = 0; j < numCPU; j++) { headProcess = headData(CPUs[j].processQueue); @@ -265,6 +266,7 @@ int main(int argc, char *argv[]) { // currentTime += deltaTime; } + //printf("Makespan %d\n", currentTime); // printf("Completed Queue:"); // llist_print(completedProcesses, (void (*)(void *)) &printQEntry); @@ -460,7 +462,6 @@ void calStats(llist *completedProcesses, int *currentTime, float *aveTurnaroundT float overhead, totOverhead, maxOverhead; process *p = headData(completedProcesses); - *currentTime = p->timeCompleted; count = 0; maxOverhead = 0;