simplification

This commit is contained in:
rusefi 2020-05-26 00:52:13 -04:00
parent a73f737748
commit 98aa135d1e
1 changed files with 4 additions and 5 deletions

View File

@ -275,14 +275,13 @@ public class UpDownImage extends JPanel {
g.drawLine(x1, y, x1, d.height);
g.drawLine(x2, y, x2, d.height);
g.setColor(Color.red);
String durationString = String.format(" %.2fms", upDown.getDuration() / EngineReport.SYS_TICKS_PER_MS);
if (showMouseOverText) {
g.setColor(Color.red);
String durationString = String.format(" %.2fms", upDown.getDuration() / EngineReport.SYS_TICKS_PER_MS);
g.drawString(durationString, x1, (int) (0.5 * d.height));
double fromAngle = time2rpm.getCrankAngleByTime((double) upDown.upTime);
double toAngle = time2rpm.getCrankAngleByTime((double) upDown.downTime);
double fromAngle = time2rpm.getCrankAngleByTime(upDown.upTime);
double toAngle = time2rpm.getCrankAngleByTime(upDown.downTime);
String fromAngleStr = RevolutionLog.angle2string(fromAngle);