Permalink
Browse files

change sort to sorting integer

  • Loading branch information...
ivanoff
ivanoff committed Jun 13, 2010
1 parent 69cbce3 commit ce36402517db7599d7f7b469077ba9b4222ac2cf
Showing with 1 addition and 1 deletion.
  1. +1 −1 benchmark.pl
View
@@ -178,7 +178,7 @@ sub end_bench {
print 'Requests per second: ' . sprintf( "%.2f", $count / $overall_time ) . "\n";
#sort by time
- @reqs_time = sort (@reqs_time);
+ @reqs_time = sort {$a <=> $b} (@reqs_time);
for my $i ( 0 .. scalar(@reqs_time) ) {

0 comments on commit ce36402

Please sign in to comment.