Update task-perf-one-million
This commit is contained in:
parent
dee7fa58dd
commit
69afce64c7
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ fn main() {
|
|||
args
|
||||
};
|
||||
|
||||
let children = from_str::<uint>(args[1]).get();
|
||||
let children = from_str::<uint>(args[1]).unwrap();
|
||||
let (wait_port, wait_chan) = stream();
|
||||
do task::spawn {
|
||||
calc(children, &wait_chan);
|
||||
|
@ -66,5 +66,5 @@ fn main() {
|
|||
let (sum_port, sum_chan) = stream::<int>();
|
||||
start_chan.send(sum_chan);
|
||||
let sum = sum_port.recv();
|
||||
error!("How many tasks? %d tasks.", sum);
|
||||
error!("How many tasks? {} tasks.", sum);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue