[Rt-commit] rt branch, query-logging, updated. rt-3.8.8-935-gb8452f7

Shawn Moore sartak at bestpractical.com
Tue Sep 28 18:14:44 EDT 2010


The branch, query-logging has been updated
       via  b8452f7b097845edcacc43a4e1a7c9837eb0b203 (commit)
      from  9733207208b192158ffa9e23845ca94a44f25f08 (commit)

Summary of changes:
 share/html/Admin/Tools/Queries.html |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

- Log -----------------------------------------------------------------
commit b8452f7b097845edcacc43a4e1a7c9837eb0b203
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Sep 28 18:17:48 2010 -0400

    Make the list a table instead in preparation for sorting

diff --git a/share/html/Admin/Tools/Queries.html b/share/html/Admin/Tools/Queries.html
index 84f4670..7214d36 100644
--- a/share/html/Admin/Tools/Queries.html
+++ b/share/html/Admin/Tools/Queries.html
@@ -68,16 +68,20 @@ unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'Super
 %     for my $request (@$history) {
           <li>
               <tt><% $request->{Path} %></tt>
-              <ol>
+              <table>
+%                 my $s = 0;
 %                 for my $statement (@{ $request->{Queries} }) {
 %                      my ( $time, $sql, $bind, $duration ) = @$statement;
-%                      my $i = 0;
-%                      $sql =~ s{\?}{$RT::Handle->Quote($bind->[$i++])}eg;
-                       <li>
-                           <tt><i><% sprintf '%.4f', $duration %>s</i> - <% $sql %></tt>
-                       </li>
+%                      my $b = 0;
+%                      $sql =~ s{\?}{$RT::Handle->Quote($bind->[$b++])}eg;
+
+                       <tr>
+                           <td><% ++$s %></td>
+                           <td><i><% sprintf '%.4f', $duration %>s</i></td>
+                           <td><tt><% $sql %></tt></td>
+                       </tr>
 %                 }
-              </ol>
+              </table>
           </li>
 %     }
     </ol>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list