1
0

fix: fix bugs pointed by AI

This commit is contained in:
2026-06-28 17:23:40 +08:00
parent e587d3e5ff
commit 7665de0889
2 changed files with 3 additions and 1 deletions

View File

@@ -443,7 +443,7 @@ class App:
# First parallel then series
SEP0: str = " " * (6 + (16 - 10))
print(f" {SEP0} ┌──[{dev1:^16}]──┐ ")
print(f"──[{dev1:^16}]──┤ {SEP0} ├──")
print(f"──[{dev3:^16}]──┤ {SEP0} ├──")
print(f" {SEP0} └──[{dev2:^16}]──┘ ")
case JointKind.PARALLEL:
# All in parallel

View File

@@ -378,6 +378,8 @@ def get_human_readable_value_scale(v: float) -> UnitScale:
return UnitScale.KILO
if v < 1e9:
return UnitScale.MEGA
if v < 1e12:
return UnitScale.GIGA
return UnitScale.GIGA_HIGHER