Round the search time and make sure the count is shown #2453

This commit is contained in:
James Cole
2019-08-21 04:37:17 +02:00
parent c76337926b
commit 22f110df8d
6 changed files with 11 additions and 20 deletions

View File

@@ -89,7 +89,7 @@ class SearchController extends Controller
$searcher->parseQuery($fullQuery);
$searcher->setLimit((int)config('firefly.search_result_limit'));
$groups = $searcher->searchTransactions();
$searchTime = $searcher->searchTime(); // in seconds
$searchTime = round($searcher->searchTime(), 3); // in seconds
try {
$html = view('search.search', compact('groups','searchTime'))->render();