formatting fixes
This commit is contained in:
parent
ebc50b5acd
commit
749b63e732
4 changed files with 6 additions and 6 deletions
|
|
@ -8,7 +8,7 @@ import akka.actor.Actor._
|
|||
import akka.routing.{ Routing, CyclicIterator }
|
||||
import Routing._
|
||||
import akka.event.EventHandler
|
||||
import akka.actor.{Channel, Actor, PoisonPill, Timeout}
|
||||
import akka.actor.{ Channel, Actor, PoisonPill, Timeout }
|
||||
import akka.dispatch.Future
|
||||
|
||||
import System.{ currentTimeMillis ⇒ now }
|
||||
|
|
@ -105,8 +105,8 @@ object Pi extends App {
|
|||
|
||||
//send calculate message
|
||||
master.?(Calculate, Timeout(60000)).
|
||||
await.resultOrException match {//wait for the result, with a 60 seconds timeout
|
||||
case Some(pi) =>
|
||||
await.resultOrException match { //wait for the result, with a 60 seconds timeout
|
||||
case Some(pi) ⇒
|
||||
EventHandler.info(this, "\n\tPi estimate: \t\t%s\n\tCalculation time: \t%s millis".format(pi, (now - start)))
|
||||
case None ⇒
|
||||
EventHandler.error(this, "Pi calculation did not complete within the timeout.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue