Skip to content

Commit 7c38d17

Browse files
committed
Update compare.py
1 parent e552ded commit 7c38d17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codeflash/benchmarking/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ def _md_bar(before: Optional[int], after: Optional[int], width: int = 10) -> str
596596
return "-"
597597
pct = ((before - after) / before) * 100
598598
filled = round(abs(pct) / 100 * width)
599-
filled = max(0, min(filled, width))
599+
filled = min(filled, width)
600600
bar = "\u2588" * filled + "\u2591" * (width - filled)
601601
return f"`{bar}` {pct:+.0f}%"
602602

0 commit comments

Comments
 (0)