Skip to content

Commit

Permalink
output check result statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
wzdnzd committed Jun 7, 2024
1 parent e2beb4a commit 292eaf8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion subscribe/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ def aggregate(args: argparse.Namespace) -> None:
availables = [checks[i] for i in range(len(checks)) if masks[i]]
nochecks.extend(availables)

dead = len(checks) - len(availables)
logger.info(f"proxies check finished, total: {len(checks)}, alive: {len(availables)}, dead: {dead}")

for item in nochecks:
item.pop("sub", "")

Expand Down Expand Up @@ -567,7 +570,7 @@ def aggregate(args: argparse.Namespace) -> None:
utils.write_file(filename=filename, lines=content)

cost = "{:.2f}s".format(time.time() - starttime)
logger.info(f"proxies check finished, group: {k}\tcount: {len(nochecks)}, cost: {cost}")
logger.info(f"group [{k}] process finished, count: {len(nochecks)}, cost: {cost}")

config = {
"domains": sites,
Expand Down

0 comments on commit 292eaf8

Please sign in to comment.