Skip to content

Commit d512eaa

Browse files
committed
应要求修改5
1 parent aa5db3f commit d512eaa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

leaves-server/src/main/java/org/leavesmc/leaves/LeavesConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,8 @@ public int getLinearFlushThreads() {
12451245
@GlobalConfig(value = "flush-delay-ms", lock = true)
12461246
public int flushDelayMs = 100;
12471247

1248-
@GlobalConfig(value = "region-unload-idle-seconds", lock = true)
1249-
public int regionUnloadIdleSeconds = 600;
1248+
@GlobalConfig(value = "region-unload-idle-ms", lock = true)
1249+
public int regionUnloadIdleMs = 600000;
12501250

12511251
@GlobalConfig(value = "region-unload-check-interval-ms", lock = true)
12521252
public int regionUnloadCheckIntervalMs = 30000;

leaves-server/src/main/java/org/leavesmc/leaves/region/linear/LinearRegionFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public class LinearRegionFile implements IRegionFile {
9595
}, delay, delay, TimeUnit.MILLISECONDS);
9696

9797
final int checkInterval = LeavesConfig.region.linear.regionUnloadCheckIntervalMs;
98-
final long idleThresholdMs = TimeUnit.SECONDS.toMillis(LeavesConfig.region.linear.regionUnloadIdleSeconds);
98+
final long idleThresholdMs = TimeUnit.SECONDS.toMillis(LeavesConfig.region.linear.regionUnloadIdleMs);
9999
REGION_UNLOAD_SCHEDULER.scheduleAtFixedRate(() -> {
100100
final long now = System.currentTimeMillis();
101101
// 异步卸载,不阻塞调度线程

0 commit comments

Comments
 (0)