X-Git-Url: https://gerrit.fd.io/r/gitweb?p=govpp.git;a=blobdiff_plain;f=core%2Fstats.go;h=3218f1e760be10ed8fb28d77e7589de9ef2252cd;hp=55c287eb3bd7a22bb14ea5c7d1a39c10d50b1da1;hb=4e16c7100cc7f8dddca051ff393460d7a1a77c98;hpb=4459b648e9fb53c34abbf52a00e63ad384fb9ee2 diff --git a/core/stats.go b/core/stats.go index 55c287e..3218f1e 100644 --- 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 { - 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 } }