Skip to content

Commit 3f16c4b

Browse files
Merge pull request #17 from SamMed05/fix/fcfs-waiting-time-typo
Fix FCFS waiting time always showing 0
2 parents 792705a + 30aa513 commit 3f16c4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/SummaryTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function SummaryTable({
5353
});
5454

5555
// If the algorithm is FCFS, calculate waiting and turnaround times after sorting by arrival time
56-
if (algorithm === "fCFS") {
56+
if (algorithm === "FCFS") {
5757
// Sort processes by arrival time for FCFS order, ignoring idle processes
5858
const sortedProcesses = [...calculatedProcesses].sort(
5959
(a, b) => a.arrival_time - b.arrival_time

0 commit comments

Comments
 (0)