Skip to content

Commit cfb6f12

Browse files
authored
Fix economy lag message (#6629)
wasn't displaying the formatted time see #6583
1 parent 49a2f10 commit cfb6f12

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)