X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=core%2Fstats.go;fp=core%2Fstats.go;h=cd93cc17736bb700f5dd20414459bd0de04ed212;hb=1a1f4043dfae2e77de70d6adfbb8d84cdeed658d;hp=0717be60c61eb43538478f08870e886aa538de20;hpb=c94a962279858fb13eaacc689f47aed358373e44;p=govpp.git diff --git a/core/stats.go b/core/stats.go index 0717be6..cd93cc1 100644 --- a/core/stats.go +++ b/core/stats.go @@ -198,6 +198,9 @@ func (c *StatsConnection) GetSystemStats(sysStats *api.SystemStats) (err error) if ss, ok := stat.Data.(adapter.SimpleCounterStat); ok { vals = make([]uint64, len(ss)) for w := range ss { + if ss[w] == nil { + continue + } vals[w] = uint64(ss[w][0]) } }