Commit 927e349c authored by Daniel Le Berre's avatar Daniel Le Berre

Yet another sonarqube violation fix.

parent a02b4e28
Pipeline #3365 passed with stages
in 45 minutes and 7 seconds
......@@ -96,7 +96,7 @@ public class SpeedTracing extends SearchListenerAdapter<ISolverService> {
this.end = System.currentTimeMillis();
long indexClean = this.index + this.end - this.begin;
this.visuTool.addPoint(indexClean / 1000.0,
this.counter / (this.end - this.begin) * 1000.0);
(this.counter * 1000.0) / (this.end - this.begin));
this.cleanVisuTool.addPoint(indexClean / 1000.0, this.maxY);
this.restartVisuTool.addInvisiblePoint(indexClean, 0);
}
......@@ -105,7 +105,7 @@ public class SpeedTracing extends SearchListenerAdapter<ISolverService> {
public void restarting() {
this.end = System.currentTimeMillis();
long indexRestart = this.index + this.end - this.begin;
double y = this.counter / (this.end - this.begin) * 1000.0;
double y = (this.counter * 1000.0) / (this.end - this.begin);
this.visuTool.addPoint(indexRestart / 1000.0, y);
if (y > this.maxY) {
this.maxY = y;
......
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