From 9caa8338564ae1dce1338f24f3482b7213ce663c Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 17 Aug 2024 23:27:36 +0200 Subject: [PATCH] Fixed infinite loop checking ApacheHttpErrorLogFiles. --- src/fr/devinsy/statoolinfos/util/FilesUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/util/FilesUtils.java b/src/fr/devinsy/statoolinfos/util/FilesUtils.java index a72eaf5..5e6bc17 100644 --- a/src/fr/devinsy/statoolinfos/util/FilesUtils.java +++ b/src/fr/devinsy/statoolinfos/util/FilesUtils.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2020-2023 Christian Pierre MOMON + * Copyright (C) 2020-2024 Christian Pierre MOMON * * This file is part of StatoolInfos, simple service statistics tool. * @@ -152,6 +152,7 @@ public class FilesUtils try { iterator = new FilesLineIterator(files); + iterator.setPrintOff(); boolean ended = false; while (!ended) @@ -168,6 +169,7 @@ public class FilesUtils else { result = null; + ended = true; } } }