Skip to content

Commit 7416c09

Browse files
author
Vladimir Kotal
authored
remove 'Completed in <duration>' message from the UI (#3266)
1 parent c257077 commit 7416c09

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

opengrok-web/src/main/webapp/search.jsp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,11 @@ include file="projects.jspf"
7171
{
7272
PageConfig cfg = PageConfig.get(request);
7373
74-
long starttime = System.currentTimeMillis();
75-
7674
SearchHelper searchHelper = cfg.prepareSearch();
7775
// N.b. searchHelper.destroy() is called via
7876
// WebappListener.requestDestroyed() on presence of the following
7977
// REQUEST_ATTR.
8078
request.setAttribute(SearchHelper.REQUEST_ATTR, searchHelper);
81-
request.setAttribute("search.jsp-query-start-time", starttime);
8279
searchHelper.prepareExec(cfg.getRequestedProjects()).executeQuery().prepareSummary();
8380
// notify suggester that query was searched
8481
SuggesterServiceFactory.getDefault().onSearch(cfg.getRequestedProjects(), searchHelper.query);
@@ -150,7 +147,6 @@ include file="menu.jspf"
150147
{
151148
PageConfig cfg = PageConfig.get(request);
152149
SearchHelper searchHelper = (SearchHelper) request.getAttribute(SearchHelper.REQUEST_ATTR);
153-
Long starttime = (Long) request.getAttribute("search.jsp-query-start-time");
154150
// TODO spellchecking cycle below is not that great and we only create
155151
// suggest links for every token in query, not for a query as whole
156152
if (searchHelper.errorMsg != null) {
@@ -207,8 +203,6 @@ include file="menu.jspf"
207203
<li>Try more general keywords.</li>
208204
<li>Use 'wil*' cards if you are looking for partial match.</li>
209205
</ul>
210-
<p><b>Completed in <%= System.currentTimeMillis() - starttime
211-
%> milliseconds</b></p>
212206
<%
213207
} else {
214208
int start = searchHelper.start;
@@ -232,8 +226,7 @@ include file="menu.jspf"
232226
Results.prettyPrint(out, searchHelper, start, start + thispage);
233227
%>
234228
</table>
235-
<p><b>Completed in <%= System.currentTimeMillis() - starttime
236-
%> milliseconds</b></p><%
229+
<%
237230
if (slider.length() > 0) {
238231
%>
239232
<p class="slider"><%= slider %></p><%

0 commit comments

Comments
 (0)