fix statistics
This commit is contained in:
parent
4796c95933
commit
be9aec73f2
|
@ -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{}
|
||||||
|
|
Loading…
Reference in New Issue