explain the results a tiny bit better
authorMike Shaver <shaver@mozilla.org>
Sun, 23 Jan 2011 00:34:22 +0000
changeset 21 0e5b01c322805c02afe733b50baaa149844a4a83
parent 20 ca1ec0c47f2075d451dfec9f6b1747bcb02c9ca6
child 22 4dc922da2bbae58a12df8c29c3ae0ae566cbc7ad
push id19
push usershaver@mozilla.com
push dateSun, 23 Jan 2011 00:35:24 +0000
explain the results a tiny bit better
server/entry.html
--- a/server/entry.html
+++ b/server/entry.html
@@ -52,18 +52,18 @@ var results;
     $("#matchingbugs").html(data);
   };
 
   conn = new io.Socket(document.domain, { rememberTransport: false });
   conn.on("connecting", function(type) { $("#matchingbugs").html("Trying <i>" + type + "</i>"); });
   conn.on("message",  function(data) {
   results = JSON.parse(data);
       var div = $("#matchingbugs");
-      div.html(" (" +  (Date.now() - conn.sendTime) + "/" +
-               results.times.server + "/" + results.times.redis + " ms)<br>");
+      div.html("results for '" + $("#keywords").val() + "' in " +  (Date.now() - conn.sendTime) + " (total)/" +
+               results.times.server + " (server)/" + results.times.redis + " (redis) ms<br>");
 
       results.bugs.forEach(function (v) { div.append("<a href='https://bugzilla.mozilla.org/show_bug.cgi?id=" + v.id + "'>" + v.id + "</a>: ");
 div.append(document.createTextNode(v.summary)); div.append("<br>"); });
       if (results.hasMore)
          div.append("<br>(Showing " + results.bugs.length + " of " + results.totalResults + " results)<br>");
     });
   conn.connect();
 });