fix(性能测试): 修复预热时间没有适配单位的bug
This commit is contained in:
parent
015c665bcf
commit
d556c722ad
|
@ -701,9 +701,11 @@ public class JmeterDocumentParser implements DocumentParser {
|
|||
switch (unit) {
|
||||
case "M":
|
||||
duration = String.valueOf(Long.parseLong(duration) * 60);
|
||||
rampUp = String.valueOf(Long.parseLong(rampUp) * 60);
|
||||
break;
|
||||
case "H":
|
||||
duration = String.valueOf(Long.parseLong(duration) * 60 * 60);
|
||||
rampUp = String.valueOf(Long.parseLong(rampUp) * 60 * 60);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -804,9 +806,11 @@ public class JmeterDocumentParser implements DocumentParser {
|
|||
switch (unit) {
|
||||
case "M":
|
||||
hold = String.valueOf(Long.parseLong(hold) * 60);
|
||||
rampUp = String.valueOf(Long.parseLong(rampUp) * 60);
|
||||
break;
|
||||
case "H":
|
||||
hold = String.valueOf(Long.parseLong(hold) * 60 * 60);
|
||||
rampUp = String.valueOf(Long.parseLong(rampUp) * 60 * 60);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue