From: David ‘Bombe’ Roden Date: Wed, 22 Oct 2008 01:41:13 +0000 (+0200) Subject: Fix speed calculation. X-Git-Tag: 0.6.2~1 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1996f683a8e4101e7f3d57e2137cc4f22a342f09;p=jSite.git Fix speed calculation. --- diff --git a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java index 4024e7e..315b89f 100644 --- a/src/de/todesbaum/jsite/gui/ProjectInsertPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectInsertPage.java @@ -293,7 +293,7 @@ public class ProjectInsertPage extends TWizardPage implements InsertListener, Cl progressString.append(progress).append("% ("); progressString.append(succeeded + failed + fatal).append('/').append(total); progressString.append(") ("); - progressString.append(formatNumber(total * 32.0 / ((System.currentTimeMillis() - startTime) / 1000), 1)); + progressString.append(formatNumber(succeeded * 32.0 / ((System.currentTimeMillis() - startTime) / 1000), 1)); progressString.append(' ').append(I18n.getMessage("jsite.insert.k-per-s")).append(')'); progressBar.setString(progressString.toString()); if (finalized) {