@@ -313,7 +313,7 @@ public String toString() {
313313 return Strings .format (
314314 "For data stream %s: %s based on [inc/dec cooldowns %s/%s, %d-%d threads, "
315315 + "write index %s has all-time/recent/peak loads %g/%g/%g, current shards %d, "
316- + "using %s value %g for increase gives %d shards %s]" ,
316+ + "increase calculation gives %d shards using %s load %g for write index %s]" ,
317317 inputs .dataStream ,
318318 result ,
319319 inputs .increaseShardsCooldown ,
@@ -325,19 +325,19 @@ public String toString() {
325325 inputs .writeIndexRecentLoad ,
326326 inputs .writeIndexPeakLoad ,
327327 inputs .currentNumberOfWriteIndexShards ,
328+ increaseCalculation .optimalShardCountForIncrease ,
328329 inputs .increaseShardsMetric ,
329330 increaseCalculation .writeIndexLoadForIncrease ,
330- increaseCalculation .optimalShardCountForIncrease ,
331331 decreaseCalculation == null
332332 ? ""
333333 : Strings .format (
334- ", and using %s value %g for dec based on %s gives %d shards" ,
334+ ", decrease calculation gives %d shards using %s load %g for %s" ,
335+ decreaseCalculation .optimalShardCountForDecrease ,
335336 inputs .decreaseShardsMetric ,
336337 decreaseCalculation .maxLoadWithinCooldown .load ,
337338 decreaseCalculation .maxLoadWithinCooldown .previousIndexWithMaxLoad != null
338339 ? decreaseCalculation .maxLoadWithinCooldown .previousIndexWithMaxLoad
339- : "write index" ,
340- decreaseCalculation .optimalShardCountForDecrease
340+ : "write index"
341341 )
342342 );
343343 }
0 commit comments