MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _log_stats

Method _log_stats

src/services/browser_captcha.py:2680–2689  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2678 await asyncio.gather(*warmup_tasks, return_exceptions=True)
2679
2680 def _log_stats(self):
2681 total = self._stats["req_total"]
2682 gen_fail = self._stats["gen_fail"]
2683 api_403 = self._stats["api_403"]
2684 gen_ok = self._stats["gen_ok"]
2685
2686 valid_success = gen_ok - api_403
2687 if valid_success < 0: valid_success = 0
2688
2689 rate = (valid_success / total * 100) if total > 0 else 0.0
2690
2691
2692 async def _warmup_browser_slot(self, browser_id: int):

Callers 1

get_tokenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected