fix flawed interval overlap rule test

fails around month end
This commit is contained in:
xvrl 2012-12-31 14:52:34 -08:00
parent db08640efc
commit d0290b1975
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ public class PeriodLoadRule extends LoadRule
@Override @Override
public boolean appliesTo(DataSegment segment) public boolean appliesTo(DataSegment segment)
{ {
final Interval currInterval = new Interval(new DateTime().minus(period), period); final Interval currInterval = new Interval(period, new DateTime());
return currInterval.overlaps(segment.getInterval()); return currInterval.overlaps(segment.getInterval());
} }
} }