in comp, consider level value clean if below -60.0

vbancmd:
pass tuple expansion into string format in version method.
ldirty and _get_levels logic now moved into rt packet class
This commit is contained in:
onyx-and-iris
2022-10-04 15:42:36 +01:00
parent 8663aab2ce
commit 4659cf7cdb
2 changed files with 10 additions and 13 deletions

View File

@@ -61,10 +61,12 @@ def comp(t0: tuple, t1: tuple) -> Iterator[bool]:
Evaluates equality of each member in both tuples.
"""
for a, b in zip(t0, t1):
if b <= 9500:
if ((1 << 16) - 1) - b <= 6000:
yield a == b
yield True
else:
yield True
Socket = IntEnum("Socket", "register request response", start=0)