Skip to content

Commit

Permalink
Remove timeTookTotal to browser. It is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksptang committed Jun 25, 2024
1 parent 21065e0 commit 0fcc122
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public SearchResult search(final SearchQuery sq, final String options, final Str
* @return the search result
*/
private SearchResult doSearch(final SearchQuery sq, final String options, final String srchJoin) {
final long start = System.currentTimeMillis();
// final long start = System.currentTimeMillis();

SearchResult result;
// if we've only got one search, we want to retrieve the keys, the page, etc. all in one go
Expand All @@ -568,7 +568,7 @@ private SearchResult doSearch(final SearchQuery sq, final String options, final
result.setSearchType(getBestSearchType(sq));
result.setPageSize(sq.getPageSize());
result.setPageNumber(sq.getPageNumber());
result.setTimeTookTotal(System.currentTimeMillis() - start);
// result.setTimeTookTotal(System.currentTimeMillis() - start);
result.setQuery(sq.getOriginalQuery());
setBestRestriction(sq, result);
final String[] allVersions = sq.getCurrentSearch().getVersions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public int compare(final SearchEntry o1, final SearchEntry o2) {
});

final SearchResult sr = new SearchResult();
sr.setTimeTookTotal(System.currentTimeMillis() - start);
// sr.setTimeTookTotal(System.currentTimeMillis() - start);
sr.setTimeTookToRetrieveScripture(0);
sr.setResults(headingMatches);
sr.setTotal(headingMatches.size());
Expand Down

0 comments on commit 0fcc122

Please sign in to comment.