压力测试仿真不记录仿真时长

This commit is contained in:
walker-sheng 2021-06-24 18:57:59 +08:00
parent 94d5f4a4ef
commit f225f67e4b

View File

@ -77,7 +77,8 @@ public class UserSimulationStatsManager {
if (simulation == null) {
return;
}
if (simulation.isScriptMakingSimulation() || simulation.isScriptPreviewSimulation()) {
if (simulation.isScriptMakingSimulation() || simulation.isScriptPreviewSimulation() ||
simulation.isStressTestSimulation()) {
return;
}
SimulationMember simulationMemberForSelf = simulation.querySimulationMemberByUserId(userId);
@ -95,7 +96,8 @@ public class UserSimulationStatsManager {
* 仿真销毁持久化数据
*/
public void simulationDestroy(Simulation simulation) {
if (simulation.isScriptMakingSimulation() || simulation.isScriptPreviewSimulation()) { //剧本编制和预览仿真不记录
if (simulation.isScriptMakingSimulation() || simulation.isScriptPreviewSimulation() ||
simulation.isStressTestSimulation()) { //剧本编制和预览仿真不记录
return;
}