Merge pull request #2440 from JoePfeiffer/fix-component-analysis-cd-format

Don't pass extra value (cd) to String.format
This commit is contained in:
Joe Pfeiffer 2024-01-16 07:52:44 -07:00 committed by GitHub
commit b908424971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}
}