This is an automated email from the ASF dual-hosted git repository.
jensdeppe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 31341fd GEODE-5448: LogExporter estimates log file size incorrectly
on Windows (#2153)
31341fd is described below
commit 31341fd7fc76a6cb2c5980d49ce3245c8c598e0d
Author: Jens Deppe <[email protected]>
AuthorDate: Wed Jul 18 14:34:48 2018 -0700
GEODE-5448: LogExporter estimates log file size incorrectly on Windows
(#2153)
---
.../java/org/apache/geode/management/internal/cli/util/LogExporter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/geode-core/src/main/java/org/apache/geode/management/internal/cli/util/LogExporter.java
b/geode-core/src/main/java/org/apache/geode/management/internal/cli/util/LogExporter.java
index d60b3c8..aafc72c 100644
---
a/geode-core/src/main/java/org/apache/geode/management/internal/cli/util/LogExporter.java
+++
b/geode-core/src/main/java/org/apache/geode/management/internal/cli/util/LogExporter.java
@@ -161,7 +161,7 @@ public class LogExporter {
break;
}
if (result == LogFilter.LineFilterResult.LINE_ACCEPTED) {
- size += line.length() + File.separator.length();
+ size += line.length() + System.lineSeparator().length();
}
}
}