diff --git a/MP1/client.py b/MP1/client.py index 8195f4a..91d5d83 100644 --- a/MP1/client.py +++ b/MP1/client.py @@ -78,5 +78,5 @@ while True: print(f"machine.{i + 1}.log: Connection failed") else: print(f"machine.{i + 1}.log: {count} matches") - print(f"Total matches: {sum(match_count)}") + print(f"Total matches: {max(0, sum(match_count))}") print("===============================================================") \ No newline at end of file