More moving around of hunks

This commit is contained in:
Nassim Jahnke
2024-12-05 14:44:50 +01:00
parent 10cba26ae2
commit c6e8192e3b
7 changed files with 398 additions and 186 deletions

View File

@@ -113,7 +113,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * Starts the Scheduler which submits our data every 30 minutes.
+ */
+ private void startSubmitting() {
+ final Runnable submitTask = this::submitData;
+ final Runnable submitTask = () -> {
+ if (!MinecraftServer.getServer().hasStopped()) {
+ submitData();
+ }
+ };
+
+ // Many servers tend to restart at a fixed time at xx:00 which causes an uneven distribution of requests on the
+ // bStats backend. To circumvent this problem, we introduce some randomness into the initial and second delay.