producer timing finish to producer.java
[mir.git] / source / mircoders / producer / ProducerContent.java
index 56766c1..633de45 100755 (executable)
@@ -117,14 +117,10 @@ public class ProducerContent extends Producer {
         pageCount++;
       }//for
     }
-    // timing and message to browser
-    long overall = System.currentTimeMillis() - startTime;
-    long pagesPerMinute=0, perMinute = overall/60000;
-    if (perMinute >0) pagesPerMinute = pageCount / perMinute;
-
-    logHTML(htmlout, "Producer.Content finished producing: " +
-            overall + " ms for "+ pageCount+" Pages = " +pagesPerMinute + " pages/min");
-    logHTML(htmlout, "Back to <a href=\""+actionRoot+"\">Admin-Startage</a>");
+
+
+
+    logHTMLFinish(htmlout, "Content", pageCount, startTime, System.currentTimeMillis());
 
     /** @todo why no syncing here? */