producer topic debug
[mir.git] / source / mircoders / producer / ProducerContent.java
index 8e8ace1..0e3953f 100755 (executable)
@@ -118,10 +118,14 @@ public class ProducerContent extends Producer {
       }//for
     }
     // timing and message to browser
-    logHTML(htmlout, "Producer.Content finished producing " +
-            (System.currentTimeMillis() - startTime) + " ms. ("+ pageCount+")");
+    long overall = System.currentTimeMillis() - startTime;
+    long pagesPerMinute=0; float perMinute = overall/60000;
+    if (perMinute >0) pagesPerMinute = (long) (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>");
 
-    /** @todo here we should have a link back to admin logged */
     /** @todo why no syncing here? */
 
   }