Update client.py
This commit is contained in:
1 parent
d50e1b965d
commit
18ca01ed6b
1 file changed
+6
@@ -79,7 +79,13 @@ match_count = grep_all_ips(ALL_IPS, cmd, if_unit_test=[x for x in sys.argv].coun
|
||||
print("=========================== SUMMARY ===========================")
|
||||
for i, count in enumerate(match_count):
|
||||
if count == -1:
|
||||
if [x for x in sys.argv].count("-t") > 0:
|
||||
print(f"machine.{i + 1}.test.log: Connection failed")
|
||||
else:
|
||||
print(f"machine.{i + 1}.log: Connection failed")
|
||||
else:
|
||||
if [x for x in sys.argv].count("-t") > 0:
|
||||
print(f"machine.{i + 1}.test.log: {count} matches")
|
||||
else:
|
||||
print(f"machine.{i + 1}.log: {count} matches")
|
||||
print(f"Total matches: {max(0, sum(match_count))}")
|
||||
|
||||
Reference in new issue
Block a user