mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
fix: adjust the probability of entering the broadcast room
This commit is contained in:
@@ -277,7 +277,7 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
|
|||||||
log.Info().Interface("live", currentVideo).
|
log.Info().Interface("live", currentVideo).
|
||||||
Msg("live count achieved, exit live room")
|
Msg("live count achieved, exit live room")
|
||||||
exitLive = true
|
exitLive = true
|
||||||
} else if rand.Float64() <= 0.10 {
|
} else if rand.Float64() <= 0.40 {
|
||||||
// 10% chance exit live room
|
// 10% chance exit live room
|
||||||
log.Info().Msg("exit live room by 10% chance")
|
log.Info().Msg("exit live room by 10% chance")
|
||||||
exitLive = true
|
exitLive = true
|
||||||
|
|||||||
Reference in New Issue
Block a user