Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Provide error counters per worker for statsclient
[govpp.git]
/
core
/
stats.go
diff --git
a/core/stats.go
b/core/stats.go
index
55c287e
..
3218f1e
100644
(file)
--- a/
core/stats.go
+++ b/
core/stats.go
@@
-305,7
+305,11
@@
func (c *StatsConnection) GetErrorStats(errorStats *api.ErrorStats) (err error)
continue
}
if errStat, ok := stat.Data.(adapter.ErrorStat); ok {
continue
}
if errStat, ok := stat.Data.(adapter.ErrorStat); ok {
- errorStats.Errors[i].Value = uint64(errStat)
+ values := make([]uint64, len(errStat))
+ for j, errStatW := range errStat {
+ values[j] = uint64(errStatW)
+ }
+ errorStats.Errors[i].Values = values
}
}
}
}