Skip to content

Commit 84bdc84

Browse files
committed
Fix clang errors
1 parent 5b747c7 commit 84bdc84

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/com/thealgorithms/scheduling/MLFQScheduler.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ public Process(int pid, int burstTime, int arrivalTime) {
131131
*/
132132
public void execute(int timeSlice) {
133133
remainingTime -= timeSlice;
134-
if (remainingTime < 0)
134+
if (remainingTime < 0) {
135135
remainingTime = 0;
136+
}
136137
}
137138

138139
/**

src/test/java/com/thealgorithms/scheduling/MLFQSchedulerTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void testMLFQScheduling() {
2626

2727
@Test
2828
void testProcessCompletionOrder() {
29-
int[] timeQuantums = { 3, 6, 9 };
29+
int[] timeQuantums = {3, 6, 9};
3030
MLFQScheduler scheduler = new MLFQScheduler(3, timeQuantums);
3131

3232
Process p1 = new Process(1, 10, 0);

0 commit comments

Comments
 (0)