浏览代码

Remove unused code

世界 1 年之前
父节点
当前提交
0f8ad0234b
共有 2 个文件被更改,包括 0 次插入4 次删除
  1. 0 3
      experimental/clashapi/trafficontrol/manager.go
  2. 0 1
      experimental/libbox/command_status.go

+ 0 - 3
experimental/clashapi/trafficontrol/manager.go

@@ -70,9 +70,6 @@ func (m *Manager) Snapshot() *Snapshot {
 		return true
 		return true
 	})
 	})
 
 
-	//if memoryInfo, err := m.process.MemoryInfo(); err == nil {
-	//	m.memory = memoryInfo.RSS
-	//} else {
 	var memStats runtime.MemStats
 	var memStats runtime.MemStats
 	runtime.ReadMemStats(&memStats)
 	runtime.ReadMemStats(&memStats)
 	m.memory = memStats.StackInuse + memStats.HeapInuse + memStats.HeapIdle - memStats.HeapReleased
 	m.memory = memStats.StackInuse + memStats.HeapInuse + memStats.HeapIdle - memStats.HeapReleased

+ 0 - 1
experimental/libbox/command_status.go

@@ -14,7 +14,6 @@ import (
 
 
 type StatusMessage struct {
 type StatusMessage struct {
 	Memory           int64
 	Memory           int64
-	MemoryInuse      int64
 	Goroutines       int32
 	Goroutines       int32
 	ConnectionsIn    int32
 	ConnectionsIn    int32
 	ConnectionsOut   int32
 	ConnectionsOut   int32