From f8d9a3b19b8a69e20c4469b541a5ae96b07e7cc8 Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Mon, 11 Mar 2013 11:08:44 -0700 Subject: [PATCH] IndexGranularity: Fix increment for day, week --- .../main/java/com/metamx/druid/index/v1/IndexGranularity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/com/metamx/druid/index/v1/IndexGranularity.java b/server/src/main/java/com/metamx/druid/index/v1/IndexGranularity.java index 4628028ee0b..75ebd7c0387 100644 --- a/server/src/main/java/com/metamx/druid/index/v1/IndexGranularity.java +++ b/server/src/main/java/com/metamx/druid/index/v1/IndexGranularity.java @@ -204,7 +204,7 @@ public enum IndexGranularity @Override public long increment(long timeMillis) { - return timeMillis - MILLIS_IN; + return timeMillis + MILLIS_IN; } @Override @@ -273,7 +273,7 @@ public enum IndexGranularity @Override public long increment(long timeMillis) { - return timeMillis - MILLIS_IN; + return timeMillis + MILLIS_IN; } @Override