Don't calculate bytes per megabyte at runtime... This will never change.

This commit is contained in:
Business Goose 2022-03-29 03:25:39 +01:00
parent 4d48b857a7
commit 9f9bc31438
No known key found for this signature in database
GPG key ID: 77DCA801362E9645

View file

@ -14,7 +14,7 @@ import java.util.concurrent.atomic.AtomicInteger;
@CommandPermissions(level = AdminLevel.SUPER, source = SourceType.BOTH)
public class Command_health extends FreedomCommand {
private static final int BYTES_PER_MB = 1024 * 1024;
private static final int BYTES_PER_MB = 1048576;
private static final DoubleRange TPS_RANGE = new DoubleRange(20.0 - 0.1, 20.0 + 0.1);
@Override