Added parens to override of preStart and postStop
This commit is contained in:
parent
d0447c76cb
commit
bce7d176f4
18 changed files with 36 additions and 36 deletions
|
|
@ -104,11 +104,11 @@ object Pi extends App {
|
|||
if (nrOfResults == nrOfMessages) self.stop()
|
||||
}
|
||||
|
||||
override def preStart {
|
||||
override def preStart() {
|
||||
start = System.currentTimeMillis
|
||||
}
|
||||
|
||||
override def postStop {
|
||||
override def postStop() {
|
||||
// tell the world that the calculation is complete
|
||||
println(
|
||||
"\n\tPi estimate: \t\t%s\n\tCalculation time: \t%s millis"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue