From f7dc764e7b93683bfda338f5b99baa1384386db5 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 5 Mar 2020 16:27:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/testPlan/components/PressureConfig.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/performance/components/testPlan/components/PressureConfig.vue b/frontend/src/performance/components/testPlan/components/PressureConfig.vue index bad6ab5af..aa38d0e95 100644 --- a/frontend/src/performance/components/testPlan/components/PressureConfig.vue +++ b/frontend/src/performance/components/testPlan/components/PressureConfig.vue @@ -64,7 +64,7 @@ @@ -164,6 +164,9 @@ if (this.duration < this.rampUpTime) { this.rampUpTime = this.duration; } + if (this.threadNumber < this.step) { + this.step = this.threadNumber; + } this.orgOptions = { xAxis: { type: 'category', @@ -215,8 +218,8 @@ }, }] }; - let timePeriod = Math.ceil(this.rampUpTime / this.step); - let threadPeriod = Math.ceil(this.threadNumber / this.step); + let timePeriod = Math.floor(this.rampUpTime / this.step); + let threadPeriod = Math.floor(this.threadNumber / this.step); let threadInc = threadPeriod; let timeInc = timePeriod; -- GitLab