From f887208cd5fa28e5ea8426ce189c5423672e600d Mon Sep 17 00:00:00 2001 From: Kevin Lynx Date: Tue, 6 Aug 2013 21:13:24 +0800 Subject: [PATCH] log bug --- src/http_front/http_handler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_front/http_handler.erl b/src/http_front/http_handler.erl index e1878fd..98f3358 100644 --- a/src/http_front/http_handler.erl +++ b/src/http_front/http_handler.erl @@ -114,7 +114,7 @@ search_by_sphinx(Keyword, Page) -> {TotalFound, CostTime, DBTime} = Stats, US = http_common:list_to_utf_binary(Keyword), ?LOG_STR(?INFO, ?FMT("search /~s/ found ~p, cost ~b sp ms, ~b db ms", - [US, TotalFound, CostTime, DBTime / 1000])), + [US, TotalFound, CostTime, DBTime div 1000])), Tip = ?TEXT("

search ~s, ~b results, ~f seconds, db ~f seconds

", [Keyword, TotalFound, CostTime / 1000, DBTime / 1000 / 1000]), BodyList = format_search_result(Rets),