Use helper func

This commit is contained in:
Dane Everitt 2020-08-18 21:43:39 -07:00
parent 60212bb08e
commit 0fc1f300f8
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -51,9 +51,7 @@ func (s *Server) StartEventListeners() {
// case stat events to pile up for the server. // case stat events to pile up for the server.
s.Filesystem.HasSpaceAvailable() s.Filesystem.HasSpaceAvailable()
// Emit the event to the websocket. s.emitProcUsage()
b, _ := json.Marshal(s.Proc())
s.Events().Publish(StatsEvent, string(b))
} }
} }
}() }()