From fcead6e026c998263f35220ab865fb59ef0f6dcf Mon Sep 17 00:00:00 2001 From: hmm Date: Tue, 9 Sep 2014 17:07:34 +0800 Subject: [PATCH] add zero point to ScheduleModel of test plan --- Bench4Q-Web/src/main/webapp/script/TestPlan/TestPlanServer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Bench4Q-Web/src/main/webapp/script/TestPlan/TestPlanServer.js b/Bench4Q-Web/src/main/webapp/script/TestPlan/TestPlanServer.js index 834c2faf..cf47e6ab 100644 --- a/Bench4Q-Web/src/main/webapp/script/TestPlan/TestPlanServer.js +++ b/Bench4Q-Web/src/main/webapp/script/TestPlan/TestPlanServer.js @@ -74,6 +74,8 @@ function getScriptId(scriptName) { function getPointModelList(allocation,requireLoadArrayObj,executeRangeArrayObj){ var pointModelList = new Array(); var preExeRange = 0; + var zeroPointModel = new WebPointModel(0,0); + pointModelList.push(zeroPointModel); for(var i=1;i< requireLoadArrayObj.length;i++){ var realLoad = parseInt(parseInt(requireLoadArrayObj[i].value)*allocation/100); var pointModel = new WebPointModel(preExeRange+=parseInt(executeRangeArrayObj[i].value),realLoad);