From 3709c85f4c28cc443dd1dd087e75d9399530fc2a Mon Sep 17 00:00:00 2001 From: CaptainB Date: Wed, 3 Nov 2021 18:16:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20--?= =?UTF-8?q?bug=3D1007710=20--user=3D=E5=88=98=E7=91=9E=E6=96=8C=20?= =?UTF-8?q?=E3=80=90=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E3=80=91-?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95-?= =?UTF-8?q?=E5=8E=8B=E5=8A=9B=E9=85=8D=E7=BD=AE=E5=8E=8B=E6=B5=8B=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E9=BB=98=E8=AE=A4=E6=98=AF=E7=A9=BA=20https://www.tap?= =?UTF-8?q?d.cn/55049933/s/1063824?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/plan/view/comonents/load/LoadCaseConfig.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseConfig.vue b/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseConfig.vue index ce6adb3d75..389954079e 100644 --- a/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseConfig.vue +++ b/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseConfig.vue @@ -49,6 +49,9 @@ export default { threadGroups.forEach(tg => { tg.threadNumber = tg.threadNumber || 10; tg.duration = tg.duration || 10; + tg.durationHours = Math.floor(tg.duration / 3600); + tg.durationMinutes = Math.floor((tg.duration / 60 % 60)); + tg.durationSeconds = Math.floor((tg.duration % 60)); tg.rampUpTime = tg.rampUpTime || 5; tg.step = tg.step || 5; tg.rpsLimit = tg.rpsLimit || 10;