Skip to content

Commit

Permalink
bin/bmark_pq: refactor calculation of the timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
arc committed Jan 7, 2012
1 parent 83de87e commit 7cfe235
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bin/bmark_pq
Expand Up @@ -23,11 +23,7 @@ if ($help) {

usage(2) if @ARGV;

if (defined $timeout) {
$timeout = DateTime::Duration->new(seconds => $timeout);
} else {
$timeout = DateTime::Duration->new(seconds => 0);
}
$timeout = DateTime::Duration->new(seconds => $timeout // 0);

if (@benchmarks == 0) {
run_all_benchmarks($n, $timeout, @modules);
Expand Down

0 comments on commit 7cfe235

Please sign in to comment.