summaryrefslogtreecommitdiffstats
path: root/container-core
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-06-15 14:35:20 +0200
committerJon Marius Venstad <venstad@gmail.com>2020-06-15 14:35:20 +0200
commit32cbecbee0499e988c755f45919ef8f1bfb0e031 (patch)
tree83c9bd79bb498cb52dcc4271f46258e84ef88a2c /container-core
parentdfa4778dede2e0823586a0bb16c1dcc290a4f93f (diff)
Return immediately at end of time window
Diffstat (limited to 'container-core')
-rw-r--r--container-core/src/main/java/com/yahoo/container/handler/LogReader.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/handler/LogReader.java b/container-core/src/main/java/com/yahoo/container/handler/LogReader.java
index 1324a37f357..3cf849a6835 100644
--- a/container-core/src/main/java/com/yahoo/container/handler/LogReader.java
+++ b/container-core/src/main/java/com/yahoo/container/handler/LogReader.java
@@ -132,7 +132,10 @@ class LogReader {
continue;
double timestamp = Double.parseDouble(parts[0]);
- if (timestamp > from && timestamp <= to)
+ if (timestamp > to)
+ return null;
+
+ if (timestamp >= from)
return new LineWithTimestamp(line, timestamp);
}
return null;