From f98abbda7fe9b7cd83231aaf66571a3c76684ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E8=81=AA?= Date: Thu, 16 Nov 2023 11:07:19 +0800 Subject: [PATCH] fix: adjust the probability of entering the broadcast room --- hrp/pkg/uixt/video_crawler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrp/pkg/uixt/video_crawler.go b/hrp/pkg/uixt/video_crawler.go index b5d064c6..9e2d88a9 100644 --- a/hrp/pkg/uixt/video_crawler.go +++ b/hrp/pkg/uixt/video_crawler.go @@ -277,7 +277,7 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) { log.Info().Interface("live", currentVideo). Msg("live count achieved, exit live room") exitLive = true - } else if rand.Float64() <= 0.10 { + } else if rand.Float64() <= 0.40 { // 10% chance exit live room log.Info().Msg("exit live room by 10% chance") exitLive = true