From b9827c0c6ef799f72330e57259d3e4e28d8f0799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E8=81=AA?= Date: Fri, 20 Oct 2023 15:42:35 +0800 Subject: [PATCH] fix: adjust access probability to 50% --- hrp/pkg/uixt/video_crawler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hrp/pkg/uixt/video_crawler.go b/hrp/pkg/uixt/video_crawler.go index 22534b86..b5d064c6 100644 --- a/hrp/pkg/uixt/video_crawler.go +++ b/hrp/pkg/uixt/video_crawler.go @@ -208,9 +208,9 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) { log.Info().Interface("video", currentVideo). Msg("live count achieved, skip entering live room") skipEnterLive = true - } else if rand.Float64() <= 0.10 { - // 10% chance skip entering live room - log.Info().Msg("skip entering preview live by 10% chance") + } else if rand.Float64() <= 0.50 { + // 50% chance skip entering live room + log.Info().Msg("skip entering preview live by 50% chance") skipEnterLive = true }