From: David ‘Bombe’ Roden Date: Thu, 9 Oct 2008 00:05:53 +0000 (+0200) Subject: Add approximated insert speed to progress bar text. X-Git-Tag: 0.6.1~2 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9b9458d2f41ef81f68be193dc163dc140574219d;p=jSite.git Add approximated insert speed to progress bar text. --- diff --git a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java index 7a3ccac..4024e7e 100644 --- a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java @@ -291,8 +291,10 @@ public class ProjectInsertPage extends TWizardPage implements InsertListener, Cl int progress = (succeeded + failed + fatal) * 100 / total; StringBuilder progressString = new StringBuilder(); progressString.append(progress).append("% ("); - progressString.append(succeeded + failed + fatal).append("/").append(total); - progressString.append(")"); + progressString.append(succeeded + failed + fatal).append('/').append(total); + progressString.append(") ("); + progressString.append(formatNumber(total * 32.0 / ((System.currentTimeMillis() - startTime) / 1000), 1)); + progressString.append(' ').append(I18n.getMessage("jsite.insert.k-per-s")).append(')'); progressBar.setString(progressString.toString()); if (finalized) { progressBar.setFont(progressBar.getFont().deriveFont(Font.BOLD));