change to 5056

This commit is contained in:
Aryan Singh committed 2026-09-13 15:33:41 -05:00
1 parent 81528e1aff
commit 914ce22e5a
4 files changed
+11 -7

No files matched your search

+6 -2
View File
@@ -2,7 +2,7 @@
import socket
import sys
PORT = 5055
PORT = 5056
ALL_IPS = [
"172.22.156.3",
"172.22.158.2",
@@ -74,7 +74,10 @@ def grep_all_ips(ips, cmd, if_unit_test):
#main
#if unit test flag exists, then use the test log files instead of the actual log files
cmd = "grep " + " ".join([arg for arg in sys.argv[1:] if arg != "-t"])
#track time
start_time = time.perf_counter()
match_count = grep_all_ips(ALL_IPS, cmd, if_unit_test=[x for x in sys.argv].count("-t") > 0)
end_time = time.perf_counter()
print("=========================== SUMMARY ===========================")
for i, count in enumerate(match_count):
@@ -89,4 +92,5 @@ for i, count in enumerate(match_count):
else:
print(f"machine.{i + 1}.log: {count} matches")
print(f"Total matches: {max(0, sum(match_count))}")
print("===============================================================")
print("===============================================================")
print(f"Time taken: {end_time - start_time:.2f} seconds")