fix: fix bugs pointed by AI
This commit is contained in:
@@ -443,7 +443,7 @@ class App:
|
|||||||
# First parallel then series
|
# First parallel then series
|
||||||
SEP0: str = " " * (6 + (16 - 10))
|
SEP0: str = " " * (6 + (16 - 10))
|
||||||
print(f" {SEP0} ┌──[{dev1:^16}]──┐ ")
|
print(f" {SEP0} ┌──[{dev1:^16}]──┐ ")
|
||||||
print(f"──[{dev1:^16}]──┤ {SEP0} ├──")
|
print(f"──[{dev3:^16}]──┤ {SEP0} ├──")
|
||||||
print(f" {SEP0} └──[{dev2:^16}]──┘ ")
|
print(f" {SEP0} └──[{dev2:^16}]──┘ ")
|
||||||
case JointKind.PARALLEL:
|
case JointKind.PARALLEL:
|
||||||
# All in parallel
|
# All in parallel
|
||||||
|
|||||||
@@ -378,6 +378,8 @@ def get_human_readable_value_scale(v: float) -> UnitScale:
|
|||||||
return UnitScale.KILO
|
return UnitScale.KILO
|
||||||
if v < 1e9:
|
if v < 1e9:
|
||||||
return UnitScale.MEGA
|
return UnitScale.MEGA
|
||||||
|
if v < 1e12:
|
||||||
|
return UnitScale.GIGA
|
||||||
return UnitScale.GIGA_HIGHER
|
return UnitScale.GIGA_HIGHER
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user