diff --git a/experimental/clashapi/trafficontrol/manager.go b/experimental/clashapi/trafficontrol/manager.go index 17efe1abda..eac7aee4d8 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 dbf1ad2efa..7f1eca8c03 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