diff --git a/experimental/clashapi/trafficontrol/manager.go b/experimental/clashapi/trafficontrol/manager.go index 17efe1ab..eac7aee4 100644 --- a/experimental/clashapi/trafficontrol/manager.go +++ b/experimental/clashapi/trafficontrol/manager.go @@ -70,9 +70,6 @@ func (m *Manager) Snapshot() *Snapshot { return true }) - //if memoryInfo, err := m.process.MemoryInfo(); err == nil { - // m.memory = memoryInfo.RSS - //} else { var memStats runtime.MemStats runtime.ReadMemStats(&memStats) m.memory = memStats.StackInuse + memStats.HeapInuse + memStats.HeapIdle - memStats.HeapReleased diff --git a/experimental/libbox/command_status.go b/experimental/libbox/command_status.go index dbf1ad2e..7f1eca8c 100644 --- a/experimental/libbox/command_status.go +++ b/experimental/libbox/command_status.go @@ -14,7 +14,6 @@ import ( type StatusMessage struct { Memory int64 - MemoryInuse int64 Goroutines int32 ConnectionsIn int32 ConnectionsOut int32