Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Minor fix to previous

  • Loading branch information...
commit 2ba0db7339271fcd078b82fbeb12df7e5962ccdd 1 parent 98dae65
Juha Litola authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  app/actors/CrawlActor.scala
2  app/actors/CrawlActor.scala
@@ -303,7 +303,7 @@ class CrawlStatisticsActor extends Actor {
303 303 val durationInPeriod = duration-lastStats.duration
304 304 "<pre>" +
305 305 ("total sites: active %d, pending %d\ncrawls: total %d, success %d, failure %d, ignored %d, redirect %d, timeout %d, running for %.2fs kB %.2f\n" format (totalSites, pendingSites, total, success, failed, ignored, redirect, timeout, fromStart, bytes/1024.0)) +
306   - ("from start: total %.2f 1/s, %.2f kBs, avg response %.2fms, avg page size %.2fkB\n" format (total/fromStart, bytes/fromStart/1024.0, if(total != 0) duration/total/1000000.0 else 0.0, if(total !=0) 1.0*bytes/total else 0.0)) +
  306 + ("from start: total %.2f 1/s, %.2f kBs, avg response %.2fms, avg page size %.2fkB\n" format (total/fromStart, bytes/fromStart/1024.0, if(total != 0) duration/total/1000000.0 else 0.0), if(total !=0) 1.0*bytes/total else 0.0) +
307 307 ("last period: total %.2f 1/s, %.2f kBs, avg response %.2fms, avg page size %.2fkB\n" format (crawlsInPeriod/fromLast, bytesInPeriod/fromLast/1024.0, if(crawlsInPeriod!=0) durationInPeriod/crawlsInPeriod/1000000.0 else 0.0), if (crawlsInPeriod!=0) 1.0*bytesInPeriod/crawlsInPeriod) +
308 308 "</pre>"
309 309 }

0 comments on commit 2ba0db7

Please sign in to comment.
Something went wrong with that request. Please try again.