Skip to content

Commit 959b8af

Browse files
committed
correct length calculation
1 parent 1333c8f commit 959b8af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def determine_best_candidate(
397397
if done and (future_line_profile_results is not None):
398398
line_profile_results = future_line_profile_results.result()
399399
candidates.extend(line_profile_results)
400-
original_len += len(candidates)
400+
original_len += len(line_profile_results)
401401
logger.info(
402402
f"Added results from line profiler to candidates, total candidates now: {original_len}"
403403
)

0 commit comments

Comments
 (0)