mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
Make some ruff fixes (#8154)
* Make some ruff fixes * Undo manual fix * Undo manual fix * Updates from ruff=0.0.251
This commit is contained in:
@ -36,12 +36,11 @@ def calculate_waitingtime(
|
||||
# Process until all processes are completed
|
||||
while complete != no_of_processes:
|
||||
for j in range(no_of_processes):
|
||||
if arrival_time[j] <= increment_time:
|
||||
if remaining_time[j] > 0:
|
||||
if remaining_time[j] < minm:
|
||||
minm = remaining_time[j]
|
||||
short = j
|
||||
check = True
|
||||
if arrival_time[j] <= increment_time and remaining_time[j] > 0:
|
||||
if remaining_time[j] < minm:
|
||||
minm = remaining_time[j]
|
||||
short = j
|
||||
check = True
|
||||
|
||||
if not check:
|
||||
increment_time += 1
|
||||
|
Reference in New Issue
Block a user