Don't pass extra value (cd) to String.format

This commit is contained in:
JoePfeiffer 2024-01-16 07:41:48 -07:00
parent 6417eb1783
commit 553b234252

View File

@ -770,7 +770,7 @@ public class ComponentAnalysisDialog extends JDialog implements StateChangeListe
DecimalFormat df = new DecimalFormat("0." + "#".repeat(Math.max(0, decimalPlaces)));
String cdFormatted = df.format(cd);
return String.format(cdFormatted + " (%.0f%%)", cd, 100 * cd / totalCD);
return String.format(cdFormatted + " (%.0f%%)", 100 * cd / totalCD);
}
}