Skip to content

Commit 0c04adf

Browse files
committed
fixed slight bug with formatting table
1 parent 26546de commit 0c04adf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/benchmarking/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def validate_and_format_benchmark_table(function_benchmark_timings: dict[str, di
2929
# If the function time is greater than total time, likely to have multithreading / multiprocessing issues.
3030
# Do not try to project the optimization impact for this function.
3131
sorted_tests.append((benchmark_key, 0.0, 0.0, 0.0))
32-
if total_time > 0:
32+
elif total_time > 0:
3333
percentage = (func_time / total_time) * 100
3434
# Convert nanoseconds to milliseconds
3535
func_time_ms = func_time / 1_000_000

0 commit comments

Comments
 (0)