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

@ -1,4 +1,4 @@
0.000000, OS: Simulator start 0.000001, OS: Simulator start
READY state from NEW state READY state from NEW state
ate ate

Binary file not shown.

View file

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