From 70468400bf056bcf4814c4f4cfd39796cba3baa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Mon, 10 Nov 2014 12:54:48 -0800 Subject: [PATCH] stupid mistake --- .../main/java/io/druid/query/topn/PooledTopNAlgorithm.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processing/src/main/java/io/druid/query/topn/PooledTopNAlgorithm.java b/processing/src/main/java/io/druid/query/topn/PooledTopNAlgorithm.java index 3a5af0a9146..392026818dc 100644 --- a/processing/src/main/java/io/druid/query/topn/PooledTopNAlgorithm.java +++ b/processing/src/main/java/io/druid/query/topn/PooledTopNAlgorithm.java @@ -165,8 +165,8 @@ public class PooledTopNAlgorithm } final int nAggregators = theAggregators.length; - final int extra = nAggregators - (nAggregators % 4) - 1; - final int ub = (nAggregators / 4) * 4; + final int extra = nAggregators - nAggregators % 4; + final int ub = ((nAggregators / 4) * 4) - 1; while (!cursor.isDone()) { final IndexedInts dimValues = dimSelector.getRow();