Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Stats APIv2
[govpp.git]
/
core
/
stats.go
diff --git
a/core/stats.go
b/core/stats.go
index
0717be6
..
cd93cc1
100644
(file)
--- 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])
}
}