From: rk Date: Mon, 18 Feb 2002 10:57:58 +0000 (+0000) Subject: tuning full production of content X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=929ef59ecb628ea9c434a4f342de2ec3c4326a5a;p=mir.git tuning full production of content --- 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? */