fix cursor overshooting granularity boundaries, due to incorrect gran.next() usage

This commit is contained in:
xvrl 2013-03-20 23:36:52 -07:00
parent cc08d6029f
commit d722c99530
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ public class QueryableIndexStorageAdapter extends BaseStorageAdapter
} }
final Offset offset = new TimestampCheckingOffset( final Offset offset = new TimestampCheckingOffset(
baseOffset, timestamps, Math.min(interval.getEndMillis(), gran.next(timeStart)) baseOffset, timestamps, Math.min(interval.getEndMillis(), gran.next(input))
); );
return new Cursor() return new Cursor()