The Wayback Machine - https://web.archive.org/all/20061011162722/http://dev.punbb.org/changeset/334

Changeset 334

Show
Ignore:
Timestamp:
Sun Nov 20 23:29:47 2005
Author:
Rickard
Message:

Fixed SQL debug table not displaying total query time properly.

Files:

Legend:

Unmodified
Added
Removed
Modified
  • branches/punbb-1.3-dev/upload/include/functions.php

    r333 r334  
    973 973         // Get the queries so that we can print them out  
    974 974         $saved_queries = $db->get_saved_queries();  
      975         $query_time_total = array_reduce($saved_queries, create_function('$v, $w', 'return $v + $w[1];'));  
    975 976  
    976 977 ?>  
    993 994 <?php  
    994 995  
    995           $query_time_total = 0.0;  
    996 996         while (list(, $cur_query) = @each($saved_queries))  
    997 997         {  
    998                   $query_time_total += $cur_query[1];  
    999 998  
    1000 999 ?>