From 1771235d61b0cbd3c4031f9ec99ab842776b2a75 Mon Sep 17 00:00:00 2001 From: Aryan Singh Date: Sat, 12 Sep 2026 20:49:55 -0500 Subject: [PATCH] Update client.py --- MP1/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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