Fixed the last minor bug (wrong time left on the last process)

+- simulator.c
This commit is contained in:
Charles Descamps 2024-03-16 19:59:06 -07:00
parent 3a21ea0275
commit ee95d19bfe
3 changed files with 2 additions and 1 deletions

View file

@ -668,6 +668,7 @@ int scheduleProcess(ProcessControlBlockLL *headPointer, ConfigDataType *configPt
{
//
shortestJobProcNum = wkgPtr->uniquePid;
shortestJob = wkgPtr->timeLeft;
}
wkgPtr = wkgPtr->nextPtr;
}