mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-12 16:01:27 +08:00
fix: invalid sleep random play duration for feed
This commit is contained in:
@@ -389,7 +389,7 @@ func (vc *VideoCrawler) getCurrentVideo() (video *Video, err error) {
|
|||||||
if video.Type == VideoType_Live || video.Type == VideoType_PreviewLive {
|
if video.Type == VideoType_Live || video.Type == VideoType_PreviewLive {
|
||||||
video.RandomPlayDuration = getSimulationDuration(vc.configs.Live.SleepRandom)
|
video.RandomPlayDuration = getSimulationDuration(vc.configs.Live.SleepRandom)
|
||||||
} else {
|
} else {
|
||||||
video.RandomPlayDuration = getSimulationDuration(vc.configs.Live.SleepRandom)
|
video.RandomPlayDuration = getSimulationDuration(vc.configs.Feed.SleepRandom)
|
||||||
}
|
}
|
||||||
|
|
||||||
// get simulation play duration
|
// get simulation play duration
|
||||||
|
|||||||
Reference in New Issue
Block a user