From be9aec73f24d46fed41c2b7294fbfb863d878c59 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Sun, 5 May 2019 16:30:15 +0200 Subject: [PATCH] fix statistics --- respond/daemon/statistics.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/respond/daemon/statistics.go b/respond/daemon/statistics.go index 826519a..4b23530 100644 --- a/respond/daemon/statistics.go +++ b/respond/daemon/statistics.go @@ -29,8 +29,7 @@ func (d *Daemon) updateStatistics(iface string, resp *data.ResponseData) { } if v, err := load.Misc(); err == nil { resp.Statistics.Processes.Running = uint32(v.ProcsRunning) - //TODO fix after upstream - resp.Statistics.Processes.Total = uint32(v.Ctxt) + resp.Statistics.Processes.Total = uint32(v.ProcsTotal) } if ls, err := net.IOCounters(true); err == nil { resp.Statistics.Traffic.Tx = &data.Traffic{}