Remove unused code

This commit is contained in:
世界 2023-11-21 17:42:07 +08:00
parent 661eadc3bd
commit 0f8ad0234b
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
2 changed files with 0 additions and 4 deletions

View File

@ -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

View File

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