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