fix(性能测试): 修复报告页并发数显示不对

This commit is contained in:
Captain.B 2020-11-20 10:45:12 +08:00
parent 63c30b737b
commit 16ab55bf4c
1 changed files with 10 additions and 2 deletions

View File

@ -129,7 +129,11 @@ export default {
this.threadGroups[i].rampUpTime = item.value;
break;
case DURATION:
this.threadGroups[i].duration = item.value;
if (item.unit) {
this.threadGroups[i].duration = item.value;
} else {
this.threadGroups[i].duration = item.value * 60;
}
break;
case STEPS:
this.threadGroups[i].step = item.value;
@ -154,7 +158,11 @@ export default {
this.threadGroups[0].rampUpTime = d.value;
break;
case DURATION:
this.threadGroups[0].duration = d.value;
if (d.unit) {
this.threadGroups[0].duration = d.value;
} else {
this.threadGroups[0].duration = d.value * 60;
}
break;
case STEPS:
this.threadGroups[0].step = d.value;