fix statistics

This commit is contained in:
Martin/Geno 2019-05-05 16:30:15 +02:00 committed by genofire
parent 4796c95933
commit be9aec73f2
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 1 additions and 2 deletions

View File

@ -29,8 +29,7 @@ func (d *Daemon) updateStatistics(iface string, resp *data.ResponseData) {
} }
if v, err := load.Misc(); err == nil { if v, err := load.Misc(); err == nil {
resp.Statistics.Processes.Running = uint32(v.ProcsRunning) resp.Statistics.Processes.Running = uint32(v.ProcsRunning)
//TODO fix after upstream resp.Statistics.Processes.Total = uint32(v.ProcsTotal)
resp.Statistics.Processes.Total = uint32(v.Ctxt)
} }
if ls, err := net.IOCounters(true); err == nil { if ls, err := net.IOCounters(true); err == nil {
resp.Statistics.Traffic.Tx = &data.Traffic{} resp.Statistics.Traffic.Tx = &data.Traffic{}