Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SAT4J
sat4j
Commits
daa46686
Commit
daa46686
authored
Nov 11, 2018
by
Daniel Le Berre
Browse files
Yet another sonarqube violation fix.
parent
15c9b2cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.sat4j.core/src/main/java/org/sat4j/tools/SpeedTracing.java
View file @
daa46686
...
...
@@ -94,8 +94,8 @@ public class SpeedTracing extends SearchListenerAdapter<ISolverService> {
public
void
cleaning
()
{
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
);
this
.
visuTool
.
addPoint
(
indexClean
/
1000.0
,
(
this
.
counter
*
1000.0
)
/
(
this
.
end
-
this
.
begin
));
this
.
cleanVisuTool
.
addPoint
(
indexClean
/
1000.0
,
this
.
maxY
);
this
.
restartVisuTool
.
addInvisiblePoint
(
indexClean
,
0
);
}
...
...
@@ -104,7 +104,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
;
double
y
=
(
this
.
counter
*
1000.0
)
/
(
this
.
end
-
this
.
begin
);
this
.
visuTool
.
addPoint
(
indexRestart
/
1000.0
,
y
);
if
(
y
>
this
.
maxY
)
{
this
.
maxY
=
y
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment