This commit is contained in:
Xiaochong Wu 2025-04-10 16:22:58 +08:00 committed by GitHub
commit d30c34185f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -140,11 +140,12 @@ public class OpenTSDBReader extends Reader {
if (TimeUtils.isSecond(endTime)) { if (TimeUtils.isSecond(endTime)) {
endTime *= 1000; endTime *= 1000;
} }
DateTime startDateTime = new DateTime(TimeUtils.getTimeInHour(startTime));
DateTime endDateTime = new DateTime(TimeUtils.getTimeInHour(endTime)); DateTime endDateTime = new DateTime(TimeUtils.getTimeInHour(endTime));
// split by metric // split by metric
for (String column : columns) { for (String column : columns) {
DateTime startDateTime = new DateTime(TimeUtils.getTimeInHour(startTime));
// split by time in hour // split by time in hour
while (startDateTime.isBefore(endDateTime)) { while (startDateTime.isBefore(endDateTime)) {
Configuration clone = this.originalConfig.clone(); Configuration clone = this.originalConfig.clone();