Fix an incorrect comparison in audio (#5643)

Signed-off-by: Draper <27962761+Drapersniper@users.noreply.github.com>
This commit is contained in:
Draper 2022-03-31 11:40:29 +01:00 committed by GitHub
parent 511de5163f
commit d8e20afa1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -250,7 +250,7 @@ class ServerManager:
invalid = None invalid = None
if match and ( if match and (
(int(match.group(1)) * 1024 ** (2 if match.group(2).lower() == "m" else 3)) (int(match.group(1)) * 1024 ** (2 if match.group(2).lower() == "m" else 3))
< (meta := get_max_allocation_size(self._java_exc))[0] <= (meta := get_max_allocation_size(self._java_exc))[0]
): ):
command_args.append(f"-Xmx{java_xmx}") command_args.append(f"-Xmx{java_xmx}")
elif meta[0] is not None: elif meta[0] is not None: