fix(性能测试): 修复性能测试修改单位后不能调整预热时间的问题

--bug=1008711 --user=刘瑞斌
[github#8398]性能测试并发1000,压测时长1小时时,在多少秒内增加用户无法修改,恒为1
https://www.tapd.cn/55049933/s/1079454

Closes #8398
This commit is contained in:
CaptainB 2021-12-10 10:47:31 +08:00 committed by 刘瑞斌
parent 4e2b769c45
commit d6cbeb13d0
1 changed files with 2 additions and 2 deletions

View File

@ -453,8 +453,8 @@ export default {
tg.threadType === 'ITERATION') {
continue;
}
if (tg.duration < tg.rampUpTime) {
tg.rampUpTime = tg.duration;
if (this.getDuration(tg) < tg.rampUpTime) {
tg.rampUpTime = this.getDuration(tg);
}
if (tg.rampUpTime < tg.step) {
tg.step = tg.rampUpTime;