Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix incorrect order of operations in sleep-timer()
  • Loading branch information
Geoffrey Broadwell committed May 16, 2014
1 parent 8aa5c73 commit 6413980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Temporal.pm
Expand Up @@ -640,7 +640,7 @@ sub sleep-timer (Real $seconds = Inf --> Duration) {
else {
my $time1 = now;
nqp::sleep($seconds.Num);
Duration.new( ( $seconds - now - $time1 ) max 0 );
Duration.new( ( $seconds - (now - $time1) ) max 0 );
}
}

Expand Down

0 comments on commit 6413980

Please sign in to comment.