/[webpac2]/Webpacus/lib/Webpacus/Model/WebPAC.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Webpacus/lib/Webpacus/Model/WebPAC.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 383 by dpavlin, Sun Jan 22 02:52:29 2006 UTC revision 384 by dpavlin, Sun Jan 22 10:58:58 2006 UTC
# Line 214  sub search { Line 214  sub search {
214                  $page = 1;                  $page = 1;
215          }          }
216    
         $times->{est} += time() - $t;  
   
217          $cond->set_max( $page * $max );          $cond->set_max( $page * $max );
218    
219          my $result = $self->{est_node}->search($cond, $args->{depth});          my $result = $self->{est_node}->search($cond, $args->{depth});
220          my $hits = $result->doc_num;          my $hits = $result->doc_num;
221    
222            $times->{est} += time() - $t;
223    
224          $log->debug( sprintf("search took %.6fs and returned $hits hits.", $times->{est}) );          $log->debug( sprintf("search took %.6fs and returned $hits hits.", $times->{est}) );
225    
226          #          #

Legend:
Removed from v.383  
changed lines
  Added in v.384

  ViewVC Help
Powered by ViewVC 1.1.26