Commit 5b1b2794 authored by Mygod's avatar Mygod

Refine TrafficMonitor thread name

parent db6c29b0
......@@ -30,7 +30,7 @@ import java.nio.ByteBuffer
import java.nio.ByteOrder
class TrafficMonitor(statFile: File) : AutoCloseable {
private val thread = object : LocalSocketListener("TrafficMonitor", statFile) {
private val thread = object : LocalSocketListener("TrafficMonitor-" + statFile.name, statFile) {
override fun acceptInternal(socket: LocalSocket) {
val buffer = ByteArray(16)
if (socket.inputStream.read(buffer) != 16) throw IOException("Unexpected traffic stat length")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment