fix(性能测试): 修复图表的问题

This commit is contained in:
Captain.B 2021-03-12 18:15:39 +08:00
parent 82b004df60
commit e306a17056
2 changed files with 5 additions and 4 deletions

View File

@ -364,7 +364,7 @@ export default {
if (j === 0) {
seriesData.data.push([0, 0]);
}
if (j > tg.rampUpTime) {
if (j >= tg.rampUpTime) {
xAxis.push(tg.duration);
seriesData.data.push([j, tg.threadNumber]);
@ -475,7 +475,7 @@ export default {
if (i === 0) {
handler.options.series[0].data.push([0, 0]);
}
if (i > handler.rampUpTime) {
if (i >= handler.rampUpTime) {
handler.options.xAxis.data.push(handler.duration);
handler.options.series[0].data.push([i, handler.threadNumber]);

View File

@ -92,6 +92,7 @@
:disabled="isReadOnly"
:min="1"
v-model="threadGroup.rampUpTime"
@change="calculateChart(threadGroup)"
size="mini"/>
</el-form-item>
<el-form-item :label="$t('load_test.ramp_up_time_seconds')"/>
@ -402,7 +403,7 @@ export default {
if (j === 0) {
seriesData.data.push([0, 0]);
}
if (j > tg.rampUpTime) {
if (j >= tg.rampUpTime) {
xAxis.push(tg.duration);
seriesData.data.push([j, tg.threadNumber]);
@ -519,7 +520,7 @@ export default {
if (i === 0) {
handler.options.series[0].data.push([0, 0]);
}
if (i > handler.rampUpTime) {
if (i >= handler.rampUpTime) {
handler.options.xAxis.data.push(handler.duration);
handler.options.series[0].data.push([i, handler.threadNumber]);