mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
fix: adjust access probability to 50%
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user