diff --git a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java index 60e01119d1..a84688d048 100644 --- a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java +++ b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java @@ -871,11 +871,9 @@ 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; @@ -988,11 +986,9 @@ 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; diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 13ad41ec95..61a8ecc096 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -607,8 +607,8 @@ export default { rps_limit: 'RPS上限:', input_rps_limit: '请输入限制', ramp_up_time_within: '在', - ramp_up_time_minutes: '{0}内,分', - ramp_up_time_seconds: '{0}内增加并发用户', + ramp_up_time_minutes: '秒内,分', + ramp_up_time_seconds: '秒内增加并发用户', iterate_num: '迭代次数 (次): ', by_iteration: '按迭代次数', by_duration: '按持续时间', diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index ac88f34752..a10330bfe0 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -607,8 +607,8 @@ export default { rps_limit: 'RPS上限:', input_rps_limit: '請輸入限制', ramp_up_time_within: '在', - ramp_up_time_minutes: '{0}內,分', - ramp_up_time_seconds: '{0}內增加並發用戶', + ramp_up_time_minutes: '秒內,分', + ramp_up_time_seconds: '秒內增加並發用戶', iterate_num: '叠代次數 (次): ', by_iteration: '按叠代次數', by_duration: '按持續時間',