Merge pull request #406 from Noremac201/progressBarFix

change Progress Bar Component to round percentage down
This commit is contained in:
Adam
2018-01-21 19:49:57 -05:00
committed by GitHub

View File

@@ -72,8 +72,8 @@ public class ProgressBarComponent
if (Strings.isNullOrEmpty(text))
{
DecimalFormat df = new DecimalFormat("#.00");
textToWrite = df.format(progress) + "%";
DecimalFormat df = new DecimalFormat("#0");
textToWrite = df.format(Math.floor(progress)) + "%";
}
else
{