We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4177388 commit d5cd0bcCopy full SHA for d5cd0bc
src/main/java/org/kairosdb/core/aggregator/RangeAggregator.java
@@ -164,7 +164,14 @@ public void setStartTime(long startTime)
164
165
public void setEndTime(long endTime)
166
{
167
- m_queryEndTime = endTime;
+ //This is to tell the exhaustive agg when to stop.
168
+ //If the end time is not specified in the query the end time is
169
+ //set to MAX_LONG which causes exhaustive agg to go on forever.
170
+ long now = System.currentTimeMillis();
171
+ if (endTime > now)
172
+ m_queryEndTime = now;
173
+ else
174
+ m_queryEndTime = endTime;
175
}
176
177
/**
0 commit comments