lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [6/8] lucenenet git commit: BUG: Lucene.Net.Index.IndexWriter: Fixed string formatting of numeric values in InfoStream message.
Date Thu, 20 Jul 2017 21:49:27 GMT
BUG: Lucene.Net.Index.IndexWriter: Fixed string formatting of numeric values in InfoStream
message.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/d71d1a00
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/d71d1a00
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/d71d1a00

Branch: refs/heads/master
Commit: d71d1a0015a9d37d89ccf164692911cff44e7432
Parents: 40e9190
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Jul 21 04:13:54 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Jul 21 04:13:54 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net/Index/IndexWriter.cs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d71d1a00/src/Lucene.Net/Index/IndexWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Index/IndexWriter.cs b/src/Lucene.Net/Index/IndexWriter.cs
index 66bb35c..b16e5b2 100644
--- a/src/Lucene.Net/Index/IndexWriter.cs
+++ b/src/Lucene.Net/Index/IndexWriter.cs
@@ -5225,8 +5225,8 @@ namespace Lucene.Net.Index
                 // lost...
 
                 if (infoStream.IsEnabled("IW"))
-                {// LUCENENET TODO: String formatting
-                    infoStream.Message("IW", string.Format(CultureInfo.InvariantCulture,
"merged segment size=%.3f MB vs estimate=%.3f MB", merge.info.GetSizeInBytes() / 1024.0 /
1024.0, merge.EstimatedMergeBytes / 1024 / 1024.0));
+                {
+                    infoStream.Message("IW", string.Format(CultureInfo.InvariantCulture,
"merged segment size={0:n3} MB vs estimate={1:n3} MB", merge.info.GetSizeInBytes() / 1024.0
/ 1024.0, merge.EstimatedMergeBytes / 1024 / 1024.0));
                 }
 
                 IndexReaderWarmer mergedSegmentWarmer = config.MergedSegmentWarmer;


Mime
View raw message