mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +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).
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user