show query time
authorChristian Weiske <cweiske@cweiske.de>
Thu, 4 Feb 2016 16:20:23 +0000 (17:20 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 4 Feb 2016 16:20:50 +0000 (17:20 +0100)
data/templates/search/sidebar.htm
www/index.php

index eaddaeb..8665706 100644 (file)
@@ -5,3 +5,7 @@
 {% include 'search/sidebar-filter.htm' with {'type': 'domain', 'title': 'Domain'} %}
 {% include 'search/sidebar-filter.htm' with {'type': 'language', 'title': 'Language'} %}
 {% include 'search/sidebar-filter.htm' with {'type': 'type', 'title': 'Type'} %}
+
+<p class="muted">
+ Query took {{queryTime}}.
+</p>
index 0412f82..2598a43 100644 (file)
@@ -107,7 +107,7 @@ foreach ($res->aggregations as $key => &$aggregation) {
 render(
     'search',
     array(
-        'queryTime' => round($timeEnd - $timeBegin, 2) . 'ms',
+        'queryTime' => round($timeEnd - $timeBegin, 2) . 's',
         'query' => $query,
         'cleanQuery' => $cleanQuery,
         'urlNoSite' => $urlNoSite,