This is an automated email from the ASF dual-hosted git repository. quintinali pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-sdap-mudrod.git
commit 5ec09c4f9ae881f9ec23ea96af6d9d06eca36f43 Merge: 5905876 0477eed Author: quintinali <tina.yu...@gmail.com> AuthorDate: Fri May 18 02:19:23 2018 -0400 Merge pull request #21 from quintinali/SDAP-77 fixed bugs in SessionGenerator.java .../main/java/org/apache/sdap/mudrod/weblog/pre/SessionGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --cc core/src/main/java/org/apache/sdap/mudrod/weblog/pre/SessionGenerator.java index 3e8ffa7,53d6d1d..6d779e8 --- a/core/src/main/java/org/apache/sdap/mudrod/weblog/pre/SessionGenerator.java +++ b/core/src/main/java/org/apache/sdap/mudrod/weblog/pre/SessionGenerator.java @@@ -356,17 -379,10 +357,17 @@@ public class SessionGenerator extends L BoolQueryBuilder filterCheck = new BoolQueryBuilder(); filterCheck.must(QueryBuilders.termQuery("IP", user)).must(QueryBuilders.termQuery("Referer", "-")); - SearchResponse checkReferer = es.getClient().prepareSearch(logIndex).setTypes(this.cleanupType).setScroll(new TimeValue(60000)).setQuery(filterCheck).setSize(0).execute().actionGet(); + SearchResponse checkReferer = es.getClient() + .prepareSearch(logIndex) + .setTypes(this.cleanupType) + .setScroll(new TimeValue(60000)) + .setQuery(filterCheck) + .setSize(0) + .execute() + .actionGet(); long numInvalid = checkReferer.getHits().getTotalHits(); - double invalidRate = numInvalid / docCount; + double invalidRate = (double)numInvalid / docCount; if (invalidRate >= 0.8) { deleteInvalid(es, user); -- To stop receiving notification emails like this one, please contact quintin...@apache.org.