Skip to content

Commit ad37b74

Browse files
committed
Merge PR EssentialsX#6629: Fix economy lag message
2 parents bf22c15 + 377c663 commit ad37b74

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Essentials/src/main/java/com/earth2me/essentials

‎Essentials/src/main/java/com/earth2me/essentials/User.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,8 @@ public BigDecimal getMoney() {
617617
final BigDecimal value = _getMoney();
618618
final long elapsed = System.nanoTime() - start;
619619
if (elapsed > ess.getSettings().getEconomyLagWarning()) {
620-
ess.getLogger().log(Level.INFO, "Lag Notice - Slow Economy Response - Request took over {0}ms!", elapsed / 1000000.0);
620+
ess.getLogger().log(Level.INFO, String.format(Locale.ROOT,
621+
"Lag Notice - Slow Economy Response - Request took over %.3fms!", elapsed / 1_000_000.0));
621622
}
622623
return value;
623624
}

0 commit comments

Comments
 (0)