Fix speed calculation.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 22 Oct 2008 01:41:13 +0000 (03:41 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 22 Oct 2008 01:41:13 +0000 (03:41 +0200)
src/de/todesbaum/jsite/gui/ProjectInsertPage.java

index 4024e7e..315b89f 100644 (file)
@@ -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) {