mirror of https://github.com/apache/lucene.git
Remove concatenation in String.format() calls (#13038)
This commit is contained in:
parent
239b83fca5
commit
e3a6a4bd8f
|
@ -60,7 +60,8 @@ class PreCopyMergedSegmentWarmer implements IndexReaderWarmer {
|
|||
primary.message(
|
||||
String.format(
|
||||
Locale.ROOT,
|
||||
"top: done warm merge " + info + ": took %.3f sec, %.1f MB",
|
||||
"top: done warm merge %s: took %.3f sec, %.1f MB",
|
||||
info,
|
||||
(System.nanoTime() - startNS) / (double) TimeUnit.SECONDS.toNanos(1),
|
||||
info.sizeInBytes() / 1024. / 1024.));
|
||||
primary.finishedMergedFiles.addAll(filesMetaData.keySet());
|
||||
|
|
|
@ -242,11 +242,9 @@ class SimplePrimaryNode extends PrimaryNode {
|
|||
message(
|
||||
String.format(
|
||||
Locale.ROOT,
|
||||
"top: warning: still warming merge "
|
||||
+ info
|
||||
+ " to "
|
||||
+ preCopy.connections.size()
|
||||
+ " replicas for %.1f sec...",
|
||||
"top: warning: still warming merge %s to %d replicas for %.1f sec...",
|
||||
info,
|
||||
preCopy.connections.size(),
|
||||
(ns - startNS) / (double) TimeUnit.SECONDS.toNanos(1)));
|
||||
lastWarnNS = ns;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue