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