[Rt-commit] rt branch, query-logging, updated. rt-3.8.8-944-ga0740a7
Shawn Moore
sartak at bestpractical.com
Tue Sep 28 20:42:50 EDT 2010
The branch, query-logging has been updated
via a0740a70eb526b33cf8b3c827887f80094262f6b (commit)
from f9e9b6300eac7be60b2b34b1fd6f07093ab0c28f (commit)
Summary of changes:
share/html/Admin/Tools/Queries.html | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit a0740a70eb526b33cf8b3c827887f80094262f6b
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 28 20:45:58 2010 -0400
Include total query time for each request
diff --git a/share/html/Admin/Tools/Queries.html b/share/html/Admin/Tools/Queries.html
index 646439a..1eaf347 100644
--- a/share/html/Admin/Tools/Queries.html
+++ b/share/html/Admin/Tools/Queries.html
@@ -69,8 +69,13 @@ unless ($session{'CurrentUser'}->HasRight( Object=> $RT::System, Right => 'Super
% } else {
<ol>
% for my $request (@$history) {
+% my $total = 0;
+% for my $statement (@{ $request->{Queries} }) {
+% $total += $statement->[3];
+% }
+
<li>
- <tt><% $request->{Path} %></tt>
+ <tt><% $request->{Path} %></tt> - <i><% sprintf '%.4f', $total %>s</i>
<table class="tablesorter">
<thead>
<tr>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list