Commit 129cba22 authored by Spiros Koulouzis's avatar Spiros Koulouzis

first set then save !

parent e0caae6f
...@@ -319,24 +319,23 @@ public class DeployService { ...@@ -319,24 +319,23 @@ public class DeployService {
SysbenchCPUBenchmark b = new SysbenchCPUBenchmark(); SysbenchCPUBenchmark b = new SysbenchCPUBenchmark();
b.setSysbenchVersion(version); b.setSysbenchVersion(version);
b.setNumberOfThreads(numOfThreads); b.setNumberOfThreads(numOfThreads);
b.setExecutionTime(executionTime * 1000); b.setExecutionTime(executionTime * 1000);
b.setTotalNumberOfEvents(totalNumberOfEvents); b.setTotalNumberOfEvents(totalNumberOfEvents);
b.setAvgEventsPerThread(avgEventsPerThread); b.setAvgEventsPerThread(avgEventsPerThread);
b.setStddevEventsPerThread(stddevEventsPerThread); b.setStddevEventsPerThread(stddevEventsPerThread);
b.setAvgExecTimePerThread(avgExecTimePerThread * 1000); b.setAvgExecTimePerThread(avgExecTimePerThread * 1000);
b.setStddevExecTimePerThread(stddevExecTimePerThread); b.setStddevExecTimePerThread(stddevExecTimePerThread);
b.setApprox95Percentile(approx95Percentile); b.setApprox95Percentile(approx95Percentile);
b.setMinExecutionTimePerRequest(minExecutionTimePerRequest); b.setMinExecutionTimePerRequest(minExecutionTimePerRequest);
b.setAvgExecutionTimePerRequest(avgExecutionTimePerRequest); b.setAvgExecutionTimePerRequest(avgExecutionTimePerRequest);
b.setMaxExecutionTimePerRequest(maxExecutionTimePerRequest); b.setMaxExecutionTimePerRequest(maxExecutionTimePerRequest);
b = (SysbenchCPUBenchmark) benchmarkResultService.save(b);
b.setAnsibleOutputID(ansOut.getId()); b.setAnsibleOutputID(ansOut.getId());
b.setCloudDeploymentDomain(ansOut.getCloudDeploymentDomain()); b.setCloudDeploymentDomain(ansOut.getCloudDeploymentDomain());
...@@ -344,6 +343,7 @@ public class DeployService { ...@@ -344,6 +343,7 @@ public class DeployService {
b.setStart(ansOut.getAnsibleResult().getStart()); b.setStart(ansOut.getAnsibleResult().getStart());
b.setEnd(ansOut.getAnsibleResult().getEnd()); b.setEnd(ansOut.getAnsibleResult().getEnd());
b.setHost(ansOut.getHost()); b.setHost(ansOut.getHost());
b = (SysbenchCPUBenchmark) benchmarkResultService.save(b);
return b; return b;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment