From 929ef59ecb628ea9c434a4f342de2ec3c4326a5a Mon Sep 17 00:00:00 2001 From: rk Date: Mon, 18 Feb 2002 10:57:58 +0000 Subject: [PATCH] tuning full production of content --- source/mircoders/producer/ProducerContent.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/mircoders/producer/ProducerContent.java b/source/mircoders/producer/ProducerContent.java index 21b025ea..56766c19 100755 --- a/source/mircoders/producer/ProducerContent.java +++ b/source/mircoders/producer/ProducerContent.java @@ -119,9 +119,11 @@ public class ProducerContent extends Producer { } // timing and message to browser long overall = System.currentTimeMillis() - startTime; - long ppm = pageCount / (overall/60000); + long pagesPerMinute=0, perMinute = overall/60000; + if (perMinute >0) pagesPerMinute = pageCount / perMinute; + logHTML(htmlout, "Producer.Content finished producing: " + - overall + " ms for "+ pageCount+" Pages = " +ppm + " pages/min"); + overall + " ms for "+ pageCount+" Pages = " +pagesPerMinute + " pages/min"); logHTML(htmlout, "Back to Admin-Startage"); /** @todo why no syncing here? */ -- 2.11.0