13
0
geforkt von Mirrors/Paper

Remove duplicate newline in report dumping

Dieser Commit ist enthalten in:
md_5 2013-10-08 16:50:05 +11:00
Ursprung d5fa46f3f9
Commit 8d12b82b81

Datei anzeigen

@ -1,11 +1,11 @@
From 3cd709b7763070249f9d6c8c7c805a227de91696 Mon Sep 17 00:00:00 2001 From 22fdbcbba3215c1503482e5281205314fc6b9a21 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au> From: md_5 <md_5@live.com.au>
Date: Sat, 23 Feb 2013 12:33:20 +1100 Date: Sat, 23 Feb 2013 12:33:20 +1100
Subject: [PATCH] Watchdog Thread. Subject: [PATCH] Watchdog Thread.
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
index fba219f..e5b8391 100644 index dec46bd..aeac6e9 100644
--- a/src/main/java/net/minecraft/server/MinecraftServer.java --- a/src/main/java/net/minecraft/server/MinecraftServer.java
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java
@@ -415,6 +415,7 @@ public abstract class MinecraftServer implements ICommandListener, Runnable, IMo @@ -415,6 +415,7 @@ public abstract class MinecraftServer implements ICommandListener, Runnable, IMo
@ -164,10 +164,10 @@ index 8ef108d..8499c7f 100644
} }
diff --git a/src/main/java/org/spigotmc/WatchdogThread.java b/src/main/java/org/spigotmc/WatchdogThread.java diff --git a/src/main/java/org/spigotmc/WatchdogThread.java b/src/main/java/org/spigotmc/WatchdogThread.java
new file mode 100644 new file mode 100644
index 0000000..0a646d6 index 0000000..8d6e1b4
--- /dev/null --- /dev/null
+++ b/src/main/java/org/spigotmc/WatchdogThread.java +++ b/src/main/java/org/spigotmc/WatchdogThread.java
@@ -0,0 +1,122 @@ @@ -0,0 +1,121 @@
+package org.spigotmc; +package org.spigotmc;
+ +
+import java.lang.management.ManagementFactory; +import java.lang.management.ManagementFactory;
@ -236,7 +236,6 @@ index 0000000..0a646d6
+ log.log( Level.SEVERE, "------------------------------" ); + log.log( Level.SEVERE, "------------------------------" );
+ // + //
+ log.log( Level.SEVERE, "Entire Thread Dump:" ); + log.log( Level.SEVERE, "Entire Thread Dump:" );
+ log.log( Level.SEVERE, "------------------------------" );
+ ThreadInfo[] threads = ManagementFactory.getThreadMXBean().dumpAllThreads( true, true ); + ThreadInfo[] threads = ManagementFactory.getThreadMXBean().dumpAllThreads( true, true );
+ for ( ThreadInfo thread : threads ) + for ( ThreadInfo thread : threads )
+ { + {